Ok, so I don’t know why this works, but it does and I haven’t seen any decrease in quality. I suspect converting from PDF to PS and back just optimizes the PDF.
Requirements
- pdftk for linux
The Process
- Convert your PDF to PS (this creates a large file
- Convert the new PS back to a PDF
pdf2ps large.pdf very_large.ps
ps2pdf very_large.ps small.pdf
Results
large.pdf : 6.3MB
very_large.ps : 53.4MB
small.pdf : 2.4MB
Looks like pretty good compression to me.
If anyone knows why this works so well, please let me know.
5 responses so far ↓
Jasper // July 16, 2008 at 9:19 pm |
I guess there is some quality loss during the process. Losing lines and curves just having bitmaps …
dude // July 30, 2008 at 11:21 pm |
pdftk is also able to uncompress and compress a pdf (see those options for the ‘pdftk’ binary) which should simply uncompress and recompress the data within the pdf to produce a smaller pdf — but not as small as the improvement you got.
attila82 // January 24, 2009 at 5:41 pm |
Very good!
thanks
Paco // June 26, 2009 at 2:39 pm |
I don’t know what happends during the process but it helps me a lot
Great!
Thanks
caqui // July 21, 2009 at 2:40 am |
it blanked the top edges of all pages…