W3C home > Mailing lists > Public > www-xsl-fo@w3.org > May 2001

Compressed PDF

From: Gian Piero Canciani <gp.canciani@iol.it>
Date: Thu, 24 May 2001 22:45:30 +0200
Message-ID: <002e01c0e492$792e27c0$c80f0e97@Standard>
To: <www-xsl-fo@w3.org>
Using FOP 0.17 I obtained a PDF output containing normal (printable)
Now, with the same application but with 0.18 version, the generated PDF 
document contains special
characters (meaning that the produced format is a compressed PDF; the 
file size is smaller also).

- I have to use a StringBuffer to return the document.
- I specify a ByteArrayOutputStream to the setOutputStream() method.
- Once filled the output stream by render(), I return the StringBuffer 
as follow:
  return new StringBuffer(outstreamobj.toString());
But the problem is that:
- The StringBuffer constructor maps special characters (hex > 80) in 3F.
- Consequently, the StringBuffer contains a compressed (but incorrect!) 

Is it possible to call the Driver's render() method asking for a non-
compressed PDF output ?

Gian Piero Canciani
Received on Thursday, 24 May 2001 16:44:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:24 UTC