Skip to content
/ pdfshrink Public

script to reduce size of a pdf file, uses ghostscript

License

Notifications You must be signed in to change notification settings

Cygn/pdfshrink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pdfshrink

Available as rpm at https://copr.fedorainfracloud.org/coprs/cygn/pdfshrink/


Usage: pdfshrink [-sepP | --screen --ebook --printer --prepress] infile [outfile]

A simple script to reduce the size of a pdf file, by optimizations offered by ghostscript. Four different levels are available, which will mainly affect the dpi of included images:

  • screen 72 dpi
  • ebook 150 dpi
  • printer: 300 dpi
  • prepress 300 dpi + colors

It doesn't give smaller files in every case, but often does, even when there are no images nor graphics. If an image appears several times in the original file the reduction can be quite substantial. The default is screen (worst quality, best reduction). Metadata is kept and it produces a PDF1.4 compatible file. If outfile is not specified, it will be infile.shrink.pdf.

About

script to reduce size of a pdf file, uses ghostscript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages