Skip to main content

Utility to manipulate PDF files

Project description

PDFsak

About it

PDFsak (PDF Swiss Army knife) is an utility to manipulate PDF files.

The previous name of the project (as of 2021-10-10) was "pdftools".

It allows you to:

  • Merge PDF files
  • N-up pages (put more than one input page into a single output page)
  • Trim pages
  • Extract pages
  • Rotate pages
  • Swap pages
  • Delete pages
  • Create handouts
  • Add text (like page numbers)
  • Remove owner protection from PDF files (the protection that allows you to open the PDF without a password, but not to print/annotate it)
  • Remove metadata from PDF file
  • And more

Disover all the functionalities by running:

pdfsak --help

Installation

From pip

Run:

pip3 install pdfsak

From source

Clone the repository and run the install script:

git clone https://github.com/raffaem/pdftools
cd pdftools
python3 setup.py install --user

A new command pdfsak is now available in your PATH.

Documentation

Checkout the online documentation.

All the examples can be found in the examples/scripts directory (GitHub link).

Take a look at this directory to learn how to achieve the above and more.

Also, check the help by running:

pdfsak --help

GUI

pdfsak currently has no GUI but only a CLI.

Requirements

  • Python >= 3.3

  • A LaTeX distribution like TexLive or MikTex

    • The following packages must be available in your LaTeX distribution:

      On Fedora you can install them by running:

      sudo dnf install texlive-lastpage texlive-pdfpages texlive-grffile texlive-forloop texlive-fancyhdr texlive-textpos texlive-changepage

    • You can check the presence of the above required LaTeX packages by running:

      pdfsak --check-latex

  • Ghostscript must be available through the gs command

    • You can check its presence by running:

      pdfsak --check-ghostscript

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdfsak-1.0.2.tar.gz (14.1 kB view hashes)

Uploaded Source

Built Distribution

pdfsak-1.0.2-py3-none-any.whl (13.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page