pypdf
pypdf copied to clipboard
A pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files
Get form fields, using a list of labels, such as: get_form_fields_in_list([ '/Tx', '/Btn' ]) to get text and button (checkbox,...) values Signed-off-by: Pascal Brand
the pdf viewed by PyPDF2 is not totally different that the one viewed in PDF pdf has been reported from #245 ## Environment Windows + Python 10 + PyPDF 2.10.0...
We process dozens of PDF files per day in our automated script that uses PyPDF2 version 1.21 as part of its process. A few files have been failing with the...
Take the below example file: ```python from PyPDF2 import PdfReader with open("example.pdf", "rb") as fp: reader = PdfReader(fp) metadata = reader.metadata assert metadata is not None date_str = metadata["/CreationDate"] date_str...
This is not a fully qualified bug report, because I lack a reproducible example for a number of reasons. However, I [originally posted](https://github.com/py-pdf/PyPDF2/issues/416#issuecomment-1162421025) in issue 416 about how I was...
Mutation testing applies common mistakes to the codebase and checks if the tests capture them. Those changes are called "mutations" (or mutants). Killing a mutant means to add a test...
I'd like to use PyPDF2 to fill out a pdf form. So far, everything is going smoothly, including updating the field text. But when I write the pdf to a...
I'm trying to understand how PyPDF2 works with existing _annotation_ objects, such as highlights, and Popups. The demos provided don't show how to **_add**_ new `DictionaryObjects` to the current list...
I'm trying to automate filling a [pdf form](https://www.unb.ca/hr/_resources/forms/staffchange2015blk.pdf) (not surprising that it's always a bad pdf). PyPdf2 seems to be the best option despite all the bugs python packages have...