I have a PDF document but I must put my own image on it. It’s an official document and I must apply an image with the text “example” to the whole page.
Is there any way to solve this problem in python?
(text in the document is curves)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Look into pypdf. You might use something like the following code to apply an overlay:
Put any overlay you want, including "Example", into
overlay.pdf.Personally, I prefer PDFTK, which, while not strictly Python, can be invoked from a script with
os.system(command).