Metadata-Version: 2.1
Name: pdfsak
Version: 1.0.3
Summary: Utility to manipulate PDF files
Home-page: https://github.com/raffaem/pdftools
Author: Raffaele Mancuso
Author-email: raffaelemancuso532@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/raffaem/pdftools/issues
Project-URL: Documentation, https://pdfsak.readthedocs.io
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# 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](https://pdfsak.readthedocs.io).

## Requirements

* [Python](https://www.python.org/) >= 3.3
* A LaTeX distribution like [TexLive](https://www.tug.org/texlive/) or [MikTex](http://miktex.org/)
    * The following packages must be available in your LaTeX distribution:
        * [pdfpages](https://www.ctan.org/pkg/pdfpages)
        * [lastpage](https://www.ctan.org/pkg/lastpage)
        * [grffile](https://www.ctan.org/pkg/grffile)
        * [forloop](https://www.ctan.org/pkg/forloop)
        * [fancyhdr](https://www.ctan.org/pkg/fancyhdr)
        * [textpos](https://www.ctan.org/pkg/textpos)
        * [changepage](https://www.ctan.org/pkg/changepage)

        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](https://www.ghostscript.com/) must be available through the `gs` command
    * You can check its presence by running:

        `pdfsak --check-ghostscript`


