diff options
author | Kelly Campbell <kellyc@apache.org> | 2000-12-18 02:28:40 +0000 |
---|---|---|
committer | Kelly Campbell <kellyc@apache.org> | 2000-12-18 02:28:40 +0000 |
commit | 6fd5d987513c63d6165216bff1a1dc931c881d7f (patch) | |
tree | 613984df6537ea9ffc022077b4732045d950fcea /src/org/apache/fop/pdf/PDFResources.java | |
parent | 7a8a17ca8876d9b9b76131bc34ea10bac6c9346d (diff) | |
download | xmlgraphics-fop-6fd5d987513c63d6165216bff1a1dc931c881d7f.tar.gz xmlgraphics-fop-6fd5d987513c63d6165216bff1a1dc931c881d7f.zip |
Changed output from Writer to OutputStream to allow for binary output.
Added compression filters for PDF renderer.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193888 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/pdf/PDFResources.java')
-rw-r--r-- | src/org/apache/fop/pdf/PDFResources.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/apache/fop/pdf/PDFResources.java b/src/org/apache/fop/pdf/PDFResources.java index 30ee840dd..b4612b704 100644 --- a/src/org/apache/fop/pdf/PDFResources.java +++ b/src/org/apache/fop/pdf/PDFResources.java @@ -107,7 +107,7 @@ public class PDFResources extends PDFObject { * * @return the PDF */ - public String toPDF() { + public byte[] toPDF() { StringBuffer p = new StringBuffer(this.number + " " + this.generation + " obj\n<< \n"); @@ -187,6 +187,6 @@ public class PDFResources extends PDFObject { p = p.append(">> \nendobj\n"); - return p.toString(); + return p.toString().getBytes(); } } |