Skip to content
Advertisement

How to add watermark in all pages of PDF files with python?

I’m try to adding watermark to every pages of my PDF file.My PDF files have 58 pages but my output file has get only last page in my PDF file.

My PDF file have 59 pages.

This's my PDF Output files.

This’s my code:

JavaScript

Please tell me how to add watermark all pages.

Advertisement

Answer

You’re rewriting your “merged” file for each page.

Try something like

JavaScript

instead.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement