diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2012-11-19 18:53:11 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2012-11-19 18:53:11 +0000 |
commit | 638ea00309ef225858fdc2b5ab2889e1236d783d (patch) | |
tree | 2d10d41ef1459a40e0a3ee644e08a21a412dd823 /src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java | |
parent | ff6508e118c14d1e8eb270a559d147e85bf0418f (diff) | |
download | xmlgraphics-fop-638ea00309ef225858fdc2b5ab2889e1236d783d.tar.gz xmlgraphics-fop-638ea00309ef225858fdc2b5ab2889e1236d783d.zip |
Bugzilla #54169: Split the parent tree (the number tree corresponding to the ParentTree entry in the structure tree root) to avoid reaching the internal limits of Acrobat Pro, that would otherwise split it at the wrong place when saving the document.
Patch submitted by Robert Meyer
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1411352 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java')
-rw-r--r-- | src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java b/src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java index ee00d2401..c532a05a4 100644 --- a/src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java +++ b/src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java @@ -124,7 +124,7 @@ class PDFLogicalStructureHandler { // being output to the PDF. // This should really be handled by PDFNumsArray pdfDoc.registerObject(pageParentTreeArray); - parentTree.getNums().put(currentPage.getStructParents(), pageParentTreeArray); + parentTree.addToNums(currentPage.getStructParents(), pageParentTreeArray); } private MarkedContentInfo addToParentTree(PDFStructElem structureTreeElement) { @@ -198,7 +198,7 @@ class PDFLogicalStructureHandler { contentItem.put("Type", OBJR); contentItem.put("Pg", this.currentPage); contentItem.put("Obj", link); - parentTree.getNums().put(structParent, structureTreeElement); + parentTree.addToNums(structParent, structureTreeElement); structureTreeElement.addKid(contentItem); } |