![](https://secure.gravatar.com/avatar/ddb19d0655fedd5d525a6d10eba5527f.jpg?s=120&d=mm&r=g)
29 Dec
2011
29 Dec
'11
5:34 p.m.
/ 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. Regards Jannis