imagemagick - acrobat reduced size pdf with gs/im/other? -


in acrobat 11 pro, can file > save other > reduced size pdf (setting acrobat 10 viewer or later), cut pdf 40% , looks same.

i wondering how can achieve same result open source tool ghost script, image magick, or adobe tools on linux server via cl or php.

gswin64c -sdevice=pdfwrite -dcompatibilitylevel=1.4 -dpdfsettings=/screen -dnopause -dquiet -dbatch -soutputfile=output.pdf input.pdf 

this works pretty reduce pdf file size. when getting used ghostscript inside batch script wary of special characters. example "%" special character postscript when using variable in cmd have escape character % -> %% , %% -> %%%% can cause headache depending on trying do. paths pain, use cd , relative file paths.

source


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -