getpage( to get page object for the first page and store this object in minutesfirstpage we then make pdffilereader object for watermark pdf and call mergepage(on minutesfirstpage the argument we pass to mergepage(is page object for the first page of watermark pdf now that we've called mergepage(on minutesfirstpageminutesfirstpage represents the watermarked first page we make pdffilewriter object and add the watermarked first page then we loop through the rest of the pages in meetingminutes pdf and add them to the pdffilewriter object finallywe open new pdf called watermarkedcover pdf and write the contents of the pdffilewriter to the new pdf figure - shows the results our new pdfwatermarkedcover pdfhas all the contents of the meetingminutes pdfand the first page is watermarked figure - the original pdf (left)the watermark pdf (center)and the merged pdf (rightencrypting pdfs pdffilewriter object can also add encryption to pdf document enter the following into the interactive shellimport pypdf pdffile open('meetingminutes pdf''rb'pdfreader pypdf pdffilereader(pdffilepdfwriter pypdf pdffilewriter(for pagenum in range(pdfreader numpages)pdfwriter addpage(pdfreader getpage(pagenum)pdfwriter encrypt('swordfish'resultpdf open('encryptedminutes pdf''wb'pdfwriter write(resultpdfresultpdf close(before calling the write(method to save to filecall the encrypt(method and pass it password string pdfs can have user password (allowing you to view the pdfand an owner password (allowing you to set permissions for printingcommentingextracting textand other featuresthe user password and owner password are the first and second arguments