From ada41f6dba25b98ed9068942708d42ac9a7301bc Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Thu, 8 Nov 2007 08:53:35 +0000 Subject: Bugfix: filters were not applied but still produced into the dictionary even if the filters are disabled. Fixes a bug with PDF-in-PDF embedding. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@593076 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/pdf/AbstractPDFStream.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/java/org') diff --git a/src/java/org/apache/fop/pdf/AbstractPDFStream.java b/src/java/org/apache/fop/pdf/AbstractPDFStream.java index e208a3916..0ade68f89 100644 --- a/src/java/org/apache/fop/pdf/AbstractPDFStream.java +++ b/src/java/org/apache/fop/pdf/AbstractPDFStream.java @@ -225,7 +225,9 @@ public abstract class AbstractPDFStream extends PDFDictionary { */ protected void populateStreamDict(Object lengthEntry) { put("Length", lengthEntry); - getFilterList().putFilterDictEntries(this); + if (!getFilterList().isDisableAllFilters()) { + getFilterList().putFilterDictEntries(this); + } } /** -- cgit v1.2.3