Closed ftconan closed 2 years ago
Thank you for reporting an issue!
However, this script has at least two issues:
page = pdf_reader.getPage(i).extractText() # <---- now 'page' is a string
print(type(page))
print(page.encode('utf-8').decode('utf-8'))
page.mergePage(watermark_pdf.getPage(0)) # <--- strings dont have a mergePage method
As it has been a long time, I doubt that you can still remember what was wrong. If you encounter another issue, please test it again with a recent PyPDF2 version and file a new issue.
I use reportlab to generate Chinese PDF, the font uses Microsoft Yahei, and PyPDF2 is used to add watermark to the original PDF garbled. How do I solve it?Thank you very much.(python3) @jerem @jasonbot @wolever @josephw @vfigueiro