From: Jeremias Maerki Date: Fri, 2 Jan 2009 09:19:09 +0000 (+0000) Subject: Some PDF actions get pooled and therefore don't need to be registered. X-Git-Tag: fop-1_0~115^2~102 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fcb06e0059f441ca55d61403025e61d971f008df;p=xmlgraphics-fop.git Some PDF actions get pooled and therefore don't need to be registered. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@730683 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/render/pdf/PDFDocumentNavigationHandler.java b/src/java/org/apache/fop/render/pdf/PDFDocumentNavigationHandler.java index 2609b13ec..bc22bb6d2 100644 --- a/src/java/org/apache/fop/render/pdf/PDFDocumentNavigationHandler.java +++ b/src/java/org/apache/fop/render/pdf/PDFDocumentNavigationHandler.java @@ -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 {