diff options
author | Keiron Liddle <keiron@apache.org> | 2002-09-05 15:15:08 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2002-09-05 15:15:08 +0000 |
commit | 21b96e895154ee6ff1053622104d87bec4caf4d0 (patch) | |
tree | c22ff2e7855edc236fcf5c802056c3aecf1310c4 /src/org/apache/fop/pdf | |
parent | 8b13c4ce7a750e2c025429d1667967fe604eb14d (diff) | |
download | xmlgraphics-fop-21b96e895154ee6ff1053622104d87bec4caf4d0.tar.gz xmlgraphics-fop-21b96e895154ee6ff1053622104d87bec4caf4d0.zip |
bookmark extension now working
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195152 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/pdf')
-rw-r--r-- | src/org/apache/fop/pdf/PDFDocument.java | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/src/org/apache/fop/pdf/PDFDocument.java b/src/org/apache/fop/pdf/PDFDocument.java index 89769adeb..d04b2d0d1 100644 --- a/src/org/apache/fop/pdf/PDFDocument.java +++ b/src/org/apache/fop/pdf/PDFDocument.java @@ -1206,24 +1206,9 @@ public class PDFDocument { private String getGoToReference(String destination) { String goToReference = null; - /*if (idReferences.doesIDExist(destination)) { - if (idReferences.doesGoToReferenceExist(destination)) { - goToReference = - idReferences.getInternalLinkGoToReference(destination); - } else { // assign Internal Link GoTo object - goToReference = - idReferences.createInternalLinkGoTo(destination, - ++this.objectcount); - addTrailerObject(idReferences.getPDFGoTo(destination)); - } - } else { // id was not found, so create it - - idReferences.createUnvalidatedID(destination); - idReferences.addToIdValidationList(destination); - goToReference = idReferences.createInternalLinkGoTo(destination, - ++this.objectcount); - addTrailerObject(idReferences.getPDFGoTo(destination)); - }*/ + PDFGoTo gt = new PDFGoTo(++this.objectcount, destination); + goToReference = gt.referencePDF(); + addTrailerObject(gt); return goToReference; } @@ -1323,14 +1308,12 @@ public class PDFDocument { String goToRef = getGoToReference(destination); PDFOutline obj = new PDFOutline(++this.objectcount, label, goToRef); - //log.debug("created new outline object"); if (parent != null) { parent.addOutline(obj); } this.objects.add(obj); return obj; - } /** |