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.
Comments
Post a Comment