|
NAMEshrinkpdf —
A simple wrapper around Ghostscript to reduce the file size of
PDFs
SYNOPSIS
DESCRIPTIONInspired by some code found in an OpenOffice Python script,shrinkpdf feeds a PDF through Ghostscript, which
performs lossy recompression by such methods as downsampling the images to a
lower resolution. The result should be (but not always is) a much smaller
file.
If invoked without [outfile], the shrunk file is written to standard output. If invoked without [resolution_in_dpi], a default resolution of 72 dpi is used. If both [infile] and [outfile] are regular files, the script checks if the shrunk output file is actually smaller than the input file. If it is not, it writes a message to stderr and copies the input to output. EXAMPLESReduce PDF resolution to 72 dpi:$ shrinkpdf myfile.pdf
>myfile-72dpi.pdf Reduce PDF resolution to 300 dpi: $ shrinkpdf myfile.pdf - 300
>myfile-300dpi.pdf Reduce PDF resolution to 150 dpi, specify [outfile]: $ shrinkpdf myfile.pdf
myfile-150dpi.pdf 150 SEE ALSOgs(1)AUTHORSshrinkpdf was written by Alfred Klomp. This manual page
was written by Michael Gmelin
<grembo@FreeBSD.org>
based on content written by Alfred Klomp.
Visit the GSP FreeBSD Man Page Interface. |