GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SHRINKPDF(1) FreeBSD General Commands Manual SHRINKPDF(1)

shrinkpdfA simple wrapper around Ghostscript to reduce the file size of PDFs

shrinkpdf [-gh] [-o outfile] [-r res] infile

Inspired 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.

The following options are available:

Enable grayscale conversion which can further reduce output size.
Show help screen.
outfile
Output file, default is standard output.
res
Resolution in DPI, default is 72.

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.

Reduce PDF resolution to 72 dpi:

$ shrinkpdf myfile.pdf >myfile-72dpi.pdf

Reduce PDF resolution to 300 dpi:

$ shrinkpdf -r 300 myfile.pdf >myfile-300dpi.pdf

Reduce PDF resolution to 150 dpi, specify [outfile]:

$ shrinkpdf -o myfile-150dpi.pdf -r 150 myfile.pdf

gs(1)

shrinkpdf was written by Alfred Klomp. This manual page was written by Michael Gmelin <grembo@FreeBSD.org> based on content written by Alfred Klomp.

July 13, 2022 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.