merge serval pdfs and add watermark
my first work in company is to download serval pdfs and merge into, then add the watermark to the pdf.
here I use the python 2.7 and PyPDF2 library.
install the dependency:
- sudo apt-get install python2.7
- pip install PyPDF2
merge two pdf:
add the watermark to the pdf:
add the watermake to pdf is the same as merging two pdfs, you should first make a pdf as your watermark and then merge the first page of the watermark pdf to each page of the target pdf.
then merge the water with the target pdf which you want to add watermark to.
Happy coding all done.