From f227dce56c9bed87a8cd0daec86267e43d2b2ae1 Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Wed, 23 May 2012 19:22:59 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/pdf/PDFStructElem.java | 1 - status.xml | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) 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). -- 2.39.5