How to Work With a PDF in Python – Real Python
https://realpython.com/pdf-pythonInstalling PyPDF2 can be done with pip or conda if you happen to be using Anaconda instead of regular Python. Here’s how you would install PyPDF2 with pip: $ pip install pypdf2 The install is quite quick as PyPDF2 does not have any dependencies. You will likely spend as much time downloading the package as you will installing it.
Pypdf2 :: Anaconda.org
https://anaconda.org/scw/pypdf2conda install -c scw pypdf2 Description A Pure-Python library build as a PDF toolkit. It is capable of extracting document information, splitting documents page by page, merging documents page by page, cropping pages, merging multiple pages into a single page, encrypting and decrypting PDF files, and more.