diff options
author | Jeremias Maerki <jeremias@apache.org> | 2009-02-16 08:09:29 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2009-02-16 08:09:29 +0000 |
commit | 1748997fc14c01a3c1b5d994d643f7e002a8d7c7 (patch) | |
tree | be567abb9f6022cc5e5a7a6462d719d5143a4c6f /src/java/org/apache/fop/pdf/AbstractPDFStream.java | |
parent | 61664b34926101049b5ae1842972deddefe99440 (diff) | |
download | xmlgraphics-fop-1748997fc14c01a3c1b5d994d643f7e002a8d7c7.tar.gz xmlgraphics-fop-1748997fc14c01a3c1b5d994d643f7e002a8d7c7.zip |
Now using the "font" filter list entry for font streams.
Made T1 and TTF streams children of a commons base class.
Refactored default filter addition a bit.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@744851 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/pdf/AbstractPDFStream.java')
-rw-r--r-- | src/java/org/apache/fop/pdf/AbstractPDFStream.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/pdf/AbstractPDFStream.java b/src/java/org/apache/fop/pdf/AbstractPDFStream.java index 1e1f1f259..fc853b512 100644 --- a/src/java/org/apache/fop/pdf/AbstractPDFStream.java +++ b/src/java/org/apache/fop/pdf/AbstractPDFStream.java @@ -47,13 +47,21 @@ public abstract class AbstractPDFStream extends PDFDictionary { * from outside. */ protected void setupFilterList() { + addDefaultFilter(PDFFilterList.DEFAULT_FILTER); + prepareImplicitFilters(); + getDocument().applyEncryption(this); + } + + /** + * Adds the default filter to the filter list if the filter list hasn't been initialized, yet. + * @param filterName the name of the default filter to use + */ + protected void addDefaultFilter(String filterName) { if (!getFilterList().isInitialized()) { getFilterList().addDefaultFilters( getDocumentSafely().getFilterMap(), - PDFFilterList.DEFAULT_FILTER); + filterName); } - prepareImplicitFilters(); - getDocument().applyEncryption(this); } /** |