]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Some PDF actions get pooled and therefore don't need to be registered.
authorJeremias Maerki <jeremias@apache.org>
Fri, 2 Jan 2009 09:19:09 +0000 (09:19 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 2 Jan 2009 09:19:09 +0000 (09:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@730683 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/pdf/PDFDocumentNavigationHandler.java

index 2609b13ec6e86825400a329533cb1d47dfd2beba..bc22bb6d204d15166fe151ef9bb900dcbbff1504 100644 (file)
@@ -158,7 +158,10 @@ public class PDFDocumentNavigationHandler implements IFDocumentNavigationHandler
             assert u.isComplete();
             PDFFactory factory = getPDFDoc().getFactory();
             pdfAction = factory.getExternalAction(u.getURI(), u.isNewWindow());
-            getPDFDoc().registerObject(pdfAction);
+            if (!pdfAction.hasObjectNumber()) {
+                //Some PDF actions a pooled
+                getPDFDoc().registerObject(pdfAction);
+            }
             this.completeActions.put(action.getID(), pdfAction);
             return pdfAction;
         } else {