Skip to content

georgesfarah/PDF-watermark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF-watermark

How to use:

-copy your PDFs to the src folder.
-add your watermark to this directory and name it watermark.pdf
-run the script,the output files will be generated in dest folder

Note:

-you need to install PyPDF2: pip install PyPDF2
-by default the watermark is 80% the height of the pdf, you can change it in the script(change value of variable factor)
-you can scale the watermark using the pdf's width by changing the value of scaleX to True.
-you can scale the watermark using the pdf's height by changing the value of scaleX to False.
-by default output files are not compressed, you can change it in the script(change value of compress to True,you need ghostscript installed on your machine and add its bin folder to environment variables path)
-I used my course materials to showcase the script.all rights are reserved to their owners.
-Program tested on Windows 10 only.

How to create watermark.pdf:

-open your image in photoshop
-change layer opacity to 30%
-save as: watermark.pdf

About

Batch Processing tool to add watermark to PDFs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages