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)

shrinkpdf
A simple wrapper around Ghostscript to reduce the file size of PDFs

shrinkpdf infile [outfile] [resolution_in_dpi]

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.

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.

Reduce 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

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.
December 21, 2019 FreeBSD 13.1-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.