pycpdflib is a Python interface to the cpdf pdf tools. More information, including commercial licenses can be found at https://www.coherentpdf.com/
The non-commercial home of pycpdflib is http://community.coherentpdf.com/
The python package may be installed with
pip install pycpdflib
and imported into your program with
import pycpdflib
- Quality Split and Merge, keeping bookmarks. Extract pages. Split on Bookmarks.
- Encrypt and Decrypt (including AES 128 and AES 256 encryption)
- Scale, rotate, crop and flip pages. Scale pages to fit
- Copy, Remove and Add bookmarks
- Stamp logos, watermarks, page numbers and multiline text. Transparency.
- Supports Unicode UTF8 text input and output
- Put multiple pages on a single page
- List, copy, or remove annotations
- Read and set document information and metadata
- Add and remove file attachments to document or page.
- Thicken hairlines, blacken text, make draft documents
- Reconstruct malformed files
- Detect missing fonts, low resolution images
The DLLs pycpdflib
and cpdflib
are required. They are free for
non-commercial use. Commercial use requires a license. The DLLs can be obtained
here:
https://github.com/coherentgraphics/cpdflib-binary
Full manual (required reading): https://coherentpdf.com/pycpdflibmanual.pdf
Follow the instructions at the end of Chapter 1 to load the DLLs and write your first pycpdflib program.
Quick reference API docs: https://python-libcpdf.readthedocs.io/en/latest/
Bug report: https://github.com/coherentgraphics/python-libcpdf