Monthly Archives: April 2021

[HOWTO] ridurre le dimensioni di un PDF con gs

Avete un pdf troppo grande? Non volete usare i servizi online? Se avete installato ghostscript (gs) potete comunque farlo. Il comando necessario è

$ gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -q -o output.pdf file.pdf

dove PDFSETTINGS serve per decidere quanto comprimere:

/screen selects low-resolution output similar to the Acrobat Distiller "Screen Optimized" setting.
/ebook selects medium-resolution output similar to the Acrobat Distiller "eBook" setting.
/printer selects output similar to the Acrobat Distiller "Print Optimized" setting.
/prepress selects output similar to Acrobat Distiller "Prepress Optimized" setting.
/default selects output intended to be useful across a wide variety of uses, possibly at the expense of a larger output file.

Anche ps2pdf può funzionare.

(fonte: StackExchange)

WP Twitter Auto Publish Powered By : XYZScripts.com
(i miei cookie)