Metadata-Version: 2.1
Name: pdf-suite
Version: 0.3.0
Summary: PDF CLI tool that allows to merge, extractimages, compress and more from PDF documents.
Home-page: https://github.com/faissaloux/pdf-suite
Author: Faissal Wahabali
Author-email: fwahabali@gmail.com
License: MIT
Project-URL: Source, https://github.com/faissaloux/pdf-suite
Project-URL: Author, https://www.faissaloux.com
Keywords: pdf,merge pdf,pdf to image,compress pdf
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Typing :: Typed
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: <4,>=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PyPDF2 (===3.0.1)
Requires-Dist: termspark (===2.2.1)
Requires-Dist: typer (===0.16.0)
Requires-Dist: PyMuPDF (===1.26.3)
Requires-Dist: pypdf[image] (===6.0.0)
Requires-Dist: img2pdf (===0.6.1)
Provides-Extra: dev
Requires-Dist: mypy (===1.17.1) ; extra == 'dev'

## Install
```bash
pip install pdf-suite
```

## Features
- Merges multiple PDF files / images into one PDF file.
- PDF to Images.
- Compress PDF.

## Usage

### Merge
Merges multiple PDF files / images into one PDF file.

```bash
pdf_suite merge -i input -o output
```

#### In order
To merge your files in a specific order, you need to pass the order you want to `--order` option.

```bash
pdf_suite merge --input input --output output --order file1.pdf,file2,file3.jpg
```

#### Output
An `ouput.pdf` file will be generated in `/output` directory.

### PDF to Images
Extract images from your PDF file.

```bash
pdf_suite pdf2img --input input.pdf --output images_directory
```

#### Output
An `images_directory` directory will be generated with all images from `file.pdf`.

### Compress PDF
Compress a PDF file.

```bash
pdf_suite compress --input input.pdf --output output.pdf
```

#### Compress to a maximum size
You can specify the maximum size (MB) you need.

```bash
pdf_suite compress --input input.pdf --output output.pdf --max 2
```

`input.pdf` will be compressed to `output.pdf` with less than 2MB.

#### Output
A compressed PDF file `output.pdf` will be generated for you.


