mergePage() and pass it the watermark_page. The next step is to iterate over the pages in the input_pdf. ![]() Then you create a PDF reader object using the input_pdf and a generic pdf_writer object for writing out the watermarked PDF. In the code, you open up the watermark PDF and grab just the first page from the document as that is where your watermark should reside. watermark: a PDF that contains your watermark image or text.output: the path you want to save the watermarked version of the PDF. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |