This is a simple PDF Encryptor application built using Tkinter for the GUI and pypdf for PDF handling. It allows you to encrypt multiple PDF files in a selected folder using a specified password.
- Select a folder containing PDF files for encryption.
- Preview PDF files in the selected folder.
- Enter a password or generate a random password.
- Optionally show/hide the entered password.
- Encrypt PDFs and save them in a new folder.
- Python 3.x
- Tkinter (usually included in Python installations)
- pypdf library (install using
pip install pypdf
)
- Clone the repository.
- Install the required dependencies:
pip install pypdf
. - Run the application:
python your_script_name.py
.
- Click on the "Select Folder" button to choose a folder containing PDF files.
- The PDF files in the selected folder will be displayed in the preview area.
- Enter a password in the "Enter Password" field or generate a random password using the "Generate Password" button.
- Optionally, check the "Show Password" checkbox to reveal the entered password.
- Click the "Encrypt PDFs" button to start the encryption process.
- Encrypted PDFs will be saved in a new folder named "protected" within the selected folder.
- The PDF encryption process might take some time, depending on the number and size of the PDF files.
pyinstaller --name 'PDF Encryptor' --icon 'icon/icon_1.icns' --windowed --onefile pdf-protect-gui.py