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
  • Simulate Adobe Acrobat Clearscan
  • And more

It work on Linux, macOS and Windows.

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.

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

  • For the simulation of Adobe Acrobat Clearscan, you will also need:

    On Fedora you can install these dependencies by running:

    sudo dnf install potrace ImageMagick

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.1.1.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

pdfsak-1.1.1-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file pdfsak-1.1.1.tar.gz.

File metadata

  • Download URL: pdfsak-1.1.1.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.10.0

File hashes

Hashes for pdfsak-1.1.1.tar.gz
Algorithm Hash digest
SHA256 46a1ff30a4951c881ca800827c2b6d7037e7cf1dde113fa8990475d1bafd40ca
MD5 40553925c16fe1378470fb03a552cea9
BLAKE2b-256 1e44aaf7a474880e32dbf8ab6a7ff5078153dbba1459c6fbf472fce490c0d7a9

See more details on using hashes here.

File details

Details for the file pdfsak-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: pdfsak-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.10.0

File hashes

Hashes for pdfsak-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f471e1e7b6018d9613d17c22ed1c365c19c44cabed12081d6e183f6bb14f5ab
MD5 455773589bd50e8bd73498cf91278791
BLAKE2b-256 1381be2e8c80bff562de87ba0d425f4bac31058d9ece64d226390fb1321286b3

See more details on using hashes here.

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