mirror of
https://github.com/tiyn/wiki.git
synced 2025-11-27 05:39:45 +01:00
740 B
740 B
Ghostscript
Ghostscript is a program used to convert, compress and render different formats like PDF, PostScript and more.
Setup
The Ghostscript program can be installed on most Linux distributions and
package managers via a package called ghostscript.
Usage
This section addresses the usage of Ghostscript.
Compressing a PDF File
A PDF file can be compressed using Ghostscript by running the following command.
<input-file> and <output-file> are the paths to the input and output PDF files.
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=<output-file> <input-file>