1 51 package org.apache.fop.pdf; 52 53 import org.apache.fop.datatypes.IDReferences; 54 55 63 public class PDFDestination { 64 65 68 private IDReferences _idReferences; 69 70 73 private String _destinationName; 74 75 78 private String _internalDestination; 79 80 86 public PDFDestination(IDReferences idReferences, String destinationName, String internalDestination) { 87 _idReferences = idReferences; 88 _destinationName = destinationName; 89 _internalDestination = internalDestination; 90 } 91 92 97 protected String toPDF() { 98 StringBuffer result = new StringBuffer (); 99 String destinationRef = _idReferences.getDestinationRef(_internalDestination); 100 result.append(" (" + _destinationName + ") ").append(destinationRef); 101 return result.toString(); 102 } 103 104 } | Popular Tags |