Full Compression PDF

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!

+5
source share
3

PDF 2 :

  • - , PDF .
  • - , , .

PDF. , : Flate, 1bpp CCITT G4 JBIG2, JPEG2000 ..

Acrobat 6.

+2

, (.. , dpi, ).

+1

See the PDF Specification , section 7.5.7 (object streams) and 7.5.8 (cross-reference streams).

I'm sure iText can read and write these files, but I never use it that way because the results are much more difficult to debug. There may be a pdf sample ... but I do not see.

I was hoping that one example of iText's 2nd release in Action covered object streams but didn't find it.

+1
source

All Articles