From fcb06e0059f441ca55d61403025e61d971f008df Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 2 Jan 2009 09:19:09 +0000 Subject: [PATCH] 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 --- .../apache/fop/render/pdf/PDFDocumentNavigationHandler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { -- 2.39.5