diff options
author | Jeremias Maerki <jeremias@apache.org> | 2008-09-15 15:06:28 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2008-09-15 15:06:28 +0000 |
commit | 50b0a1cbf65b5dce664d08f751cf452772176587 (patch) | |
tree | 9d152f565d66e92dbb6427056d53ff7e8bc44758 /src/java/org/apache | |
parent | 6582977a9932e22166e1ef165bc79e49a559229f (diff) | |
download | xmlgraphics-fop-50b0a1cbf65b5dce664d08f751cf452772176587.tar.gz xmlgraphics-fop-50b0a1cbf65b5dce664d08f751cf452772176587.zip |
PDF Output: Made sure the XMP Metadata stream is never compressed.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@695491 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r-- | src/java/org/apache/fop/pdf/PDFFilterList.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFFilterList.java b/src/java/org/apache/fop/pdf/PDFFilterList.java index 5eab5c81a..3025b8788 100644 --- a/src/java/org/apache/fop/pdf/PDFFilterList.java +++ b/src/java/org/apache/fop/pdf/PDFFilterList.java @@ -163,6 +163,11 @@ public class PDFFilterList { * @param type which filter list to modify */ public void addDefaultFilters(Map filters, String type) { + if (METADATA_FILTER.equals(type)) { + //XMP metadata should not be embedded in clear-text + addFilter(new NullFilter()); + return; + } List filterset = null; if (filters != null) { filterset = (List)filters.get(type); @@ -171,10 +176,7 @@ public class PDFFilterList { } } if (filterset == null || filterset.size() == 0) { - if (METADATA_FILTER.equals(type)) { - //XMP metadata should not be embedded in clear-text - addFilter(new NullFilter()); - } else if (JPEG_FILTER.equals(type)) { + if (JPEG_FILTER.equals(type)) { //JPEG is already well compressed addFilter(new NullFilter()); } else if (TIFF_FILTER.equals(type)) { |