Skip to main content
The pdfitdown Python package provides a native interface to the Rust PdfItDown engine via PyO3 and Maturin.

Installation

Or build from source:

Supported Formats

CLI

The package installs a pdfitdown CLI entry point:

Python API

Import the Converter class from pdfitdown.pdfconversion:

Convert a single file

Convert multiple files

If you omit output_paths, PDFs are written next to the inputs with .pdf extension.

Convert a directory

Returns a list of generated PDF paths.

Error handling

All methods raise standard Python exceptions on failure (e.g. IOError when an output file exists and overwrite=False).