]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
The Type entry is optional for a structure element. Not outputting it allows to save...
authorVincent Hennebert <vhennebert@apache.org>
Wed, 23 May 2012 19:22:59 +0000 (19:22 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Wed, 23 May 2012 19:22:59 +0000 (19:22 +0000)
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

src/java/org/apache/fop/pdf/PDFStructElem.java
status.xml

index 90a41fb7275d5623fd2d7d7936f1b9cc44cac633..a771111709e0cc7e50dc46125a288bc90629adbb 100644 (file)
@@ -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);
     }
index 73ad014cfb90e2a17ae6e875b3c2ae982d9977a1..f7186e0953a7e61ea187c7de1f6497f8891fabe3 100644 (file)
       documents. Example: the fix of marks layering will be such a case when it's done.
     -->
     <release version="FOP Trunk" date="TBD">
+      <action context="Renderers" dev="VH" type="fix" due-to="Martin Koegler">
+        Stop outputting the Type entry for structure elements in order to create a smaller PDF 
+        ouptut when accessibility is enabled.
+      </action>
       <action context="Config" dev="GA" type="fix" fixes-bug="52144" due-to="Luis Bernardo">
         Fix crash on use of version switch (-v).
       </action>