From: Vincent Hennebert Date: Wed, 23 May 2012 19:22:59 +0000 (+0000) Subject: The Type entry is optional for a structure element. Not outputting it allows to save... X-Git-Tag: fop-1_1rc1old~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f227dce56c9bed87a8cd0daec86267e43d2b2ae1;p=xmlgraphics-fop.git The Type entry is optional for a structure element. Not outputting it allows to save space in the final output. Suggested by Martin Koegler as part of Bugzilla #50852 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1341992 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/pdf/PDFStructElem.java b/src/java/org/apache/fop/pdf/PDFStructElem.java index 90a41fb72..a77111170 100644 --- a/src/java/org/apache/fop/pdf/PDFStructElem.java +++ b/src/java/org/apache/fop/pdf/PDFStructElem.java @@ -50,7 +50,6 @@ public class PDFStructElem extends PDFDictionary implements StructureTreeElement if (parent instanceof PDFStructElem) { parentElement = (PDFStructElem) parent; } - put("Type", new PDFName("StructElem")); put("S", structureType); setParent(parent); } diff --git a/status.xml b/status.xml index 73ad014cf..f7186e095 100644 --- a/status.xml +++ b/status.xml @@ -63,6 +63,10 @@ documents. Example: the fix of marks layering will be such a case when it's done. --> + + Stop outputting the Type entry for structure elements in order to create a smaller PDF + ouptut when accessibility is enabled. + Fix crash on use of version switch (-v).