On Thu, Dec 29, 2011 at 5:34 PM, Jan Heinen <jahei...@gmx.de> wrote: >> 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-transformation
-- luigi ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________