コマンドラインからPDFのサイズを圧縮する
GhostScriptを使う
setting で品質を指定する "/screen" < "/ebook" < "/printer" の順。
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=<setting> -sOutputFile=output.pdf input.pdf
setting で品質を指定する "/screen" < "/ebook" < "/printer" の順。
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=<setting> -sOutputFile=output.pdf input.pdf