pypdf is a pure-Python library for splitting, merging, cropping, transforming, encrypting, and extracting text and metadata from PDF files.