python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How does one write Python code that merges 2 files created using wkhtmltopdf into 1 pdf file using pypdf2
I have an application with the back-end written in Python that converts html files to pdf files. To do this it implements wkhtmltopdf (https://wkhtmltopdf.org/). It currently works perfectly for creat...
albertrw
Votes: 0
Answers: 1
Extract PNG from a PDF file using PyPDF2 and Pillow: not enough image data
Using the code I found in this post, which corrects this example code, I'm trying to extract images on all pages of a PDF file. Now I'm getting an error for PNG images (works for JPG) at the second li...

mrgou
Votes: 0
Answers: 1
pyPDF2 "Stream has ended unexpectedly"
This is my first python code. The writer passes an error. This seems to occur randomly during the process of looping through the pdf's.
try: except: pass will not work because it will just skip the fi...
Rand0mdude
Votes: 0
Answers: 1
Using ReportLab and PyPDF2, how do I diagonally align text through the middle of a landscape pdf/power point?
I am trying to diagonally place a text watermark over pdf slides. The issue I am having is that if the text is too long or short it is not centered correctly or it gets cut off due to the x and y coor...
bas25z
Votes: 0
Answers: 0