A python command-line utitily to apply watermark to all pages of a pdf
- make sure python is installed
- create folder for program
- create new venv inside folder:
virtualenv my_venv
- activate venv:
.\my_venv\Scripts\activate
- install dependencies:
pip isntall -r .\requirements.txt
python pdf-watermarker.py [pdf_file] ?[output_file] ?[watermark_file]
[pdf_file]
- is the path to the pdf file on which you want to add a watermark?[output_file]
- an optional argument which specifies the full path of the output file and default to.../Desktop/output.pdf
?[watermark_file]
an optional argument which specifies the full path of the watermark file of type png. This value default to the valueDEFAULT_WATERMARK_PATH
which is in filelocal_vars.py
which you should place inside same folder aspdf-watermarker.py
. (as seen in Image1)