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

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

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

Uploaded Source

Built Distribution

pdfsak-1.0.3-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdfsak-1.0.3.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.7

File hashes

Hashes for pdfsak-1.0.3.tar.gz
Algorithm Hash digest
SHA256 df503c7aab3059962b626aac12b4187786267d5645c94c0938314865b28357a2
MD5 cd9bd92f7eb6294e3c44c53d5751df05
BLAKE2b-256 545087a09cf845a6604b88c560d4cc99bf2a0651f437ec57ed84e6ff16a5cede

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pdfsak-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.7

File hashes

Hashes for pdfsak-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6f9079f448fc2abba26da4c0f483895c12d7e37e8a580780c2e1eb2d480f2d77
MD5 860636183e2769164db7d626788b924e
BLAKE2b-256 a9c8038f3f13987c5654bc6e62b52c420834e3f7ae0cd662fe9fbf854ef6f0c3

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