- Download this code by clicking the green coloured download code button above and clicking download zip, and unzip it to your required location.
- Copy your certificate to this location. Make sure the name of the file is "certificate.pdf". You can also edit the code to accept any other file name.
- Install python from https://www.python.org/downloads/ (I ran it using version 3.9, it should work normally on any other version as well)
- Install pdf2image module using
pip install pdf2image
. It requires poppler as described here.
Once installed, set the path of poppler in the poppler_path variable in pdfedit.py.
- Install PIL module using
pip install pillow
.
- Run the code from commandline using
python pdfedit.py
.
The result should look like below: