Note
This page is about PyPDF2. PyPDF2 is deprecated, please use pypdf
Welcome to PyPDF2
PyPDF2 is a free and open source pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. It can also add custom data, viewing options, and passwords to PDF files. PyPDF2 can retrieve text and metadata from PDFs as well.
You can contribute to PyPDF2 on GitHub.
User Guide
- Installation
- Migration Guide: 1.x to 2.x
- Imports and Modules
- Naming Adjustments
- Robustness and strict=False
- Exceptions, Warnings, and Log messages
- Metadata
- Extract Text from a PDF
- Extract Images
- Encryption and Decryption of PDFs
- Merging PDF files
- Cropping and Transforming PDFs
- Adding a Stamp/Watermark to a PDF
- Reading PDF Annotations
- Adding PDF Annotations
- Interactions with PDF Forms
- Streaming Data with PyPDF2
- Reduce PDF Size
- PDF Version Support
API Reference
- The PdfReader Class
- The PdfWriter Class
- The PdfMerger Class
- The PageObject Class
- The Transformation Class
- The DocumentInformation Class
- The XmpInformation Class
- The Destination Class
- The RectangleObject Class
- The Field Class
- The PageRange Class
- The AnnotationBuilder Class
- The Fit Class
- The PaperSize Class
Developer Guide
Indices and tables
Note
This page is about PyPDF2. PyPDF2 is deprecated, please use pypdf