From 6fd5d987513c63d6165216bff1a1dc931c881d7f Mon Sep 17 00:00:00 2001 From: Kelly Campbell Date: Mon, 18 Dec 2000 02:28:40 +0000 Subject: 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 --- lib/Fop.class | Bin 4103 -> 4052 bytes lib/Fop.java | 9 ++------- 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'lib') diff --git a/lib/Fop.class b/lib/Fop.class index d48961ea4..3efe0e708 100644 Binary files a/lib/Fop.class and b/lib/Fop.class differ diff --git a/lib/Fop.java b/lib/Fop.java index 4a67db973..d304cc3ed 100644 --- a/lib/Fop.java +++ b/lib/Fop.java @@ -61,12 +61,7 @@ import org.xml.sax.SAXException; import org.xml.sax.SAXParseException; // Java -import java.io.FileReader; -import java.io.File; -import java.io.FileWriter; -import java.io.PrintWriter; -import java.io.IOException; -import java.io.FileNotFoundException; +import java.io.*; import java.net.URL; // FOP @@ -200,7 +195,7 @@ public class Fop { driver.addElementMapping("org.apache.fop.svg.SVGElementMapping"); driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping"); driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping"); - driver.setWriter(new PrintWriter(new FileWriter(pdffile))); + driver.setOutputStream(new FileOutputStream(pdffile)); driver.buildFOTree(parser, fileInputSource(fofile)); driver.format(); driver.render(); -- cgit v1.2.3