diff options
author | Jeremias Maerki <jeremias@apache.org> | 2007-10-26 07:48:14 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2007-10-26 07:48:14 +0000 |
commit | 9fd779a18a0dac95dd125c6880bafdad650c856f (patch) | |
tree | 72885ebf79f83e219d029a29c0e764dbf7a0433b /src/java/org/apache/fop/pdf/PDFT1Stream.java | |
parent | 1a43096a10cba160b249c0ee363d44bffdf3bd97 (diff) | |
download | xmlgraphics-fop-9fd779a18a0dac95dd125c6880bafdad650c856f.tar.gz xmlgraphics-fop-9fd779a18a0dac95dd125c6880bafdad650c856f.zip |
Merged https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_PDF_in_PDF (563130:HEAD) into Trunk.
Adds generic structures in PDF so it is possible to embed external PDF documents, for example to support PDF files in fo:external-graphic for PDF output. See also: http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-dev/200708.mbox/%3c20070806165027.5C59.DEV@jeremias-maerki.ch%3e
I tried to keep the changes on the API of the PDF library minimal but there could still be some incompatibilities for anyone who uses it separately.
This also adds support for dynamically registering an image handler. That's just a temporary solution until the image package redesign is done. But it works.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@588547 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/pdf/PDFT1Stream.java')
-rw-r--r-- | src/java/org/apache/fop/pdf/PDFT1Stream.java | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFT1Stream.java b/src/java/org/apache/fop/pdf/PDFT1Stream.java index aca7e4f60..08a626009 100644 --- a/src/java/org/apache/fop/pdf/PDFT1Stream.java +++ b/src/java/org/apache/fop/pdf/PDFT1Stream.java @@ -61,18 +61,12 @@ public class PDFT1Stream extends AbstractPDFStream { return length; } - /** - * {@inheritDoc} - */ - protected String buildStreamDict(String lengthEntry) { - final String filterEntry = getFilterList().buildFilterDictEntries(); - return (getObjectID() - + "<< /Length " + lengthEntry - + " /Length1 " + pfb.getLength1() - + " /Length2 " + pfb.getLength2() - + " /Length3 " + pfb.getLength3() - + "\n" + filterEntry - + "\n>>\n"); + /** {@inheritDoc} */ + protected void populateStreamDict(Object lengthEntry) { + super.populateStreamDict(lengthEntry); + put("Length1", new Integer(pfb.getLength1())); + put("Length2", new Integer(pfb.getLength2())); + put("Length3", new Integer(pfb.getLength3())); } /** |