I am working on a tool that will write PDF files, and I'm trying to find a way to compress objects and streams in a PDF file. The number of PDF files that I generate is quite large, but can be significantly reduced by compressing objects (or most of the PDF structure) into a flate stream. I swear I saw this before, but none of the PDFs that I looked at seem to do this. I also tried using Acrobat X to compress it with “full file compression”, but it seems to only compress streams.
I tried using ObjStm, but it does not have much support from other file readers. I need something that has a bit more support outside of Adobe.
Any suggestions are welcome!
source
share