Installation

Installation

Install Aspose.PDF FOSS for Python from PyPI with pip. The package targets Python 3.11 and later and ships type information for editor autocompletion.


Prerequisites

RequirementDetail
Python3.11 or later
OSWindows, Linux, or macOS
Runtime dependenciescryptography>=42, asn1crypto>=1.5 (installed automatically)
Optional extrasimages (Pillow), woff2 (Brotli), text-layout (uharfbuzz, python-bidi, fonttools)

API change: The Document class has been updated (API_MODIFIED).


1. Install the package

git clone https://github.com/aspose-pdf-foss/Aspose-PDF-FOSS-for-Python.git
cd Aspose-PDF-FOSS-for-Python
pip install -e .

2. Install optional extras (if needed)

Add the images, woff2, or text-layout extra when you need Pillow-based raster image handling, Brotli-based WOFF2 font decoding, or HarfBuzz-based complex text shaping:

git clone https://github.com/aspose-pdf-foss/Aspose-PDF-FOSS-for-Python.git
cd Aspose-PDF-FOSS-for-Python
pip install -e .

Next Steps

See Also