Skip to content
A utility to read and write PDFs with Python
Python Shell
Find file
New pull request
Pull request Compare This branch is 356 commits ahead of colemana:master.
Latest commit 0900101 @mstamy2 Merge pull request #221 from louib/parameterized_js
Parameterized JavaScript.


PyPDF2 is a pure-python PDF library capable of splitting, merging together, cropping, and transforming the pages of PDF files. It can also add custom data, viewing options, and passwords to PDF files. It can retrieve text and metadata from PDFs as well as merge entire files together.



Please see sample code folder


Documentation is available at


Please see


PyPDF2 includes a test suite built on the unittest framework. All tests are located in the "Tests" folder. Tests can be run from the command line by:

python -m unittest Tests.tests
Something went wrong with that request. Please try again.