pypdf
pypdf copied to clipboard
A pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files
`writer. add_page(page)` increase page size, I have a pdf file, each file of this pdf file contains two slides merged into one, I want to split each page into two...
I was trying to merge the same PDF with itself multiple number of times. 1st I want to have the original PDF, then I want to have the PDF duplicated,...
Hello - i try to get the status (checked / unchecked) of the radiobuttons and checkboxes in this document. I tried it with the following code but I always get...
Missing spaces in extract_text() method. See attached PDFs. Text is being extracted nice, but it comes with no spaces from almost all fields. ## Environment ```bash $ python -c "import...
Here's a description of the issue https://stackoverflow.com/questions/73533672/pypdf2-doesnt-display-barcode-pdf417-after-using-update-page-form-field-value/73535421#73535421 [pdf417](https://pypi.org/project/pdf417/) barcode isn't displayed after using update_page_form_field_values() ## Environment Which environment were you using when you encountered the problem? * Windows 10 *...
The warning message ("Superfluous whitespace found in object header") occurred when PDF file being read was created on Windows machine. When PDF was recreated on Mac, the warning went away....
I am replicating the process posted by ofir dubi here: https://stackoverflow.com/questions/25164871/how-to-add-page-numbers-to-pdf-file-using-python-and-matplotlib So far, I decided to stick to PyPDF2 instead of PyPDF4. It was working properly until the most recent...
I have several PDF files from customers, and using `remove_text` can cause infinite looping. Upon investigation, I discovered a corner case where `elt["/Resources"]` has a circular relation, which can result...
## Explanation I am trying to update each field of a PDF file with some data but I don't know which PageObject to use after getting the list of fields...
passes an IndirectObject for the target page instead of an integer. passing an integer creates an invalid link. Fixes #2443