On Thu, Dec 29, 2011 at 5:34 PM, Jan Heinen
pdf -> pdftops ->ps ->ghostscript ->pdf seems to be more robust and gives better results -- luigi
I will give it a try: Can you tell me the commands with all the parameters I need ?
I have tried the following:
#!/bin/sh suffix="_opt.pdf" pdftops -paper match -level3 $1.pdf tmp.ps gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -dColorConversionStrategy=/LeaveColorUnchanged -dBATCH -dNOPAUSE -sOutputFile=$1.pdf$suffix tmp.ps rm tmp.ps
But in some cases the PDF-files got bigger instead of smaller. Yes this also my experience. I suppose that gs acts only on images, not streams compression You can try qpdf http://qpdf.sourceforge.net see 3.4. Advanced Transformation Options http://qpdf.sourceforge.net/files/qpdf-manual.html#ref.advanced-transformati...
-- luigi