xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kelly Campbell <c...@channelpoint.com>
Subject RE: FOP and PDF Size
Date Wed, 13 Dec 2000 20:55:18 GMT
I just tried this... and it seems to work great. A 760K PDF from FOP
compressed into 320K. I'll look at adding a setting to FOP's PDF rendering
classes to flate-compress streams.

Attached is the modified source and compiled class I used with pj-1.10.jar.


-----Original Message-----
From: Kelly Campbell [mailto:camk@channelpoint.com]
Sent: Wednesday, December 13, 2000 1:46 PM
To: 'fop-dev@xml.apache.org'
Subject: RE: FOP and PDF Size

You could also use Etymon's PJ library to postprocess the PDF and
flate-compress any stream objects.


Look at the file in the pj.jar called
You can probably modify that to call PJStream.flateCompress() instead of
flateDecompress(). I'm not sure how much this will compress the file, but
it's worth a try.


-----Original Message-----
From: Joachim Diepstraten / media access
Sent: Wednesday, December 13, 2000 1:19 PM
To: 'fop-dev@xml.apache.org'
Subject: RE: FOP and PDF Size


>Can I do anything to optimize my input, or is it just the way FOP works?
Yep that's the way fop works. It doesn't use optimized bytestreams to encode
text things. If you open your PDF with Adobe's Acrobatwriter and save it
with optimize
option it's about factor 6-7 smaller but it's no longer easy to read in a 


View raw message