pdfshrink

Script of shrink PDF files (wrapper around GhostScript)


Keywords
PDF, GhostScript
License
MIT
Install
pip install pdfshrink==0.1.0

Documentation

pdfshrink

Travis Build status Conda Version

Simple command-line script that allows you to remove the size of PDF-files.

pdfshrink <files>...

Note that the script is in fact a simple Python script that wraps GhostScript.

Contents

Disclaimer

This library is free to use under the MIT license. Any additions are very much appreciated, in terms of suggested functionality, code, documentation, testimonials, word-of-mouth advertisement, etc. Bug reports or feature requests can be filed on GitHub. As always, the code comes with no guarantee. None of the developers can be held responsible for possible mistakes.

Download: .zip file | .tar.gz file.

(c - MIT) T.W.J. de Geus (Tom) | tom@geus.me | www.geus.me | github.com/tdegeus/pdfshrink

Getting pdfshrink

Using conda

conda install -c conda-forge pdfshrink

This will also install all necessary dependencies.

Using PyPi

pip install pdfshrink

This will also install the necessary Python modules, but not GhostScript.

From source

# Download pdfshrink
git checkout https://github.com/tdegeus/pdfshrink.git
cd pdfshrink

# Install
python -m pip install .

This will also install the necessary Python modules, but not GhostScript.

Usage

The usage is as follows (see pdfshrink --help):

pdfshrink
  Shrink a PDFs file size using GhostScript.

Usage:
  pdfshrink [options] <files>...

Options:
  -o, --output=<N>  Specify output file. (default: overwrite the input file(s))
  -s, --silent      Do not print any progress.
      --verbose     Verbose all commands.
  -h, --help        Show help.
      --version     Show version.

(c - MIT) T.W.J. de Geus | tom@geus.me | www.geus.me