All Questions
1,515 questions
1
vote
0
answers
96
views
WeasyPrint + pypdf: visible, non-editable escape characters on parentheses
I'm generating PDF form from HTML (WeasyPrint), filling the AcroForm fields with pypdf, then merging that page into a 4‑page template.
However, when the data contain parentheses, pdf viewers (browser, ...
0
votes
1
answer
72
views
Random alignment when overlaying pdfs using pypdf
I'm trying to overlay 1 pdf onto multiple different pdf files. All of them have the exact same size (in terms of page dimensions) and they are all landscape. However, when overlaying them, the stamp ...
0
votes
2
answers
192
views
Merging pdfs with pypdf does not create an output file
I attempted to build a python "pdf envelope" script. I'm using the pypdf library to attempt to take the first command line argument as name of new file to be created, and subsequent ...
2
votes
0
answers
197
views
Can't find PDF text
I'm trying to come up with a nice feature for my work colleagues, that every day in the morning, we would get in Slack the menu of the day... inspired by https://github.com/lemedege/LunchBot/blob/main/...
1
vote
2
answers
181
views
How can I insert an image with a clickable hyperlink on the first page of a PDF using Python?
I'm trying to programmatically add a clickable image icon to the top-left corner of the first page of a PDF file using Python. I want the icon to link to a URL.
what I tried using reportlab and PyPDF2:...
1
vote
1
answer
343
views
Stuck during PyPDF3 installation
I want to install PyPDF3 on my Linux Mint, but the error message I get is very long but doesn't help me much. Any hints?
kav@webdev:~$ cat /etc/issue
Linux Mint 21.1 Vera \n \l
kav@webdev:~$ python3 -...
0
votes
0
answers
82
views
Why is the embedded image extracted from pypdf of lower resolution than when i used pdf2image to conver the entire pdf page?
I have a pdf document which I want to extract embedded images to be used.
I used the code below which to extract the embedded images from the first page of the pdf document:
from pypdf import ...
0
votes
2
answers
145
views
Add XMP dta to PDF file via pypdf
I need to add XMP data to a PDF file obtained through pypdf. In question reading/writing XML metadata on PDF files through pypdf, KyleBrooks answered that this is impossible. But that was in 2009. ...
2
votes
0
answers
130
views
Issue with Editable PDF Fields Not Displaying in Adobe Acrobat
I am filling in editable fields in a PDF file using Python (PyPDF library) and saving the file with the code below. However, when I open the PDF, the filled fields do not appear. If I open the saved ...
-1
votes
1
answer
138
views
extraction of redline of word document converted to pdf using python library
I have a set of documents that were edited in Microsoft Word. Take for example a document that says "This is a test document." The document is then edited, with track changes on, to read &...
0
votes
0
answers
95
views
Python PyPDF not cropping as intended
I was trying to write a program that takes a PDF and splits each page into two pages. The original PDF is landscape and has two pages side-by-side 'per page', like this:
I want the PDF like this:
I ...
0
votes
1
answer
211
views
pypdf or pikepdf advice needed on bookmarks
I am sorry but I am unable to understand how to rearrange bookmarks in PDF document.
I have PDF document with medical records which was created by importing new and new items from individual ...
1
vote
0
answers
88
views
Combine Duplicate Fonts When Appending PDF Files - Python
I am trying to combine 450 PDFs into a single PDF. There are only a few unique fonts among all the files. Once all the files are combined, I look at the structure though pdfcrowd.com and I can see the ...
0
votes
1
answer
143
views
Correct format of ICC-based /ColorSpace in PDF
I am generating PDF files on-the-fly. The files contain JPEG images in the Adobe RGB (1998) colourspace, with the profile embedded. The PDF generation toolkit embeds the images correctly, but sets the ...
1
vote
1
answer
102
views
How can I change the sequence of the pages in a PDF file?
I want to make a simple Python program that changes the order of the pages in a PDF file, which would allow me later to place two pages (A5) on one sheet (A4) and print the document as a booklet on a ...