We have been using FOP in a servlet to generate PDF files out of a XSLT template. One of the problem we had is that the plain PDF output did not work until the ASCII-85 filter was enabled as follows:

List list = new ArrayList(2);
list.add("flate");
list.add("ascii-hex");
list.add("ascii-85");
Configuration.put("stream-filter-list", list, Configuration.PDF);

Now for the first time, we used an XSL-FO template with JPEG images via the use of the fo:external-graphic tag. The template works fine locally but when run in the servlet it fails. Upon closer inspection, the output PDF file contains ASCII-85 encoding for everything EXCEPT the embedded JPEGs. The JPEGs come out as binary streams even though the rest of the file isn't. Is there a way to force ASCII-85 encoding on the whole file?

Sincerely,
Yakov Shafranovich

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to