The code will help to encrypt the PDF with an password. A new encrypted PDF will be created.
-
Install Python to your system.
-
Install the module PYPDF2
-
Do it by typing this on Power Shell (for Windows) or Bash (for Linux)
pip install PyPDF2
Now you are ready to run the code
- Create any folder and copy the encryptPDF.py file in that folder and also make sure that the PDF to be encrypted is in that same folder.
- Open the encryptPDF.py file i.e run it.
- Give the name of the folder and other instructions asked.
- Ameya Jain (https://github.com/AmeyaJain-25)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.