This is a C# program for encrypting PDF files, making them non-editable. It processes all PDF files in a specified input folder, encrypts them, and saves the encrypted versions in an output folder. If there are any errors during processing, the program moves the problematic files to an error folder.
- Input Folder: Place the folder with PDF files you want to process in the ORIGINAL_FOLDER_YOU_WANT_TO_PROCESS folder.
- Output Folder: Processed PDF files will be saved to the OUTPUT_FOLDER_OF_PROCESSED_FILES folder.
- Error Handling: Any files that encounter errors during processing will be moved to the ERROR_FOLDER.
- Encryption: The program encrypts the PDF files using a specified owner password.
- .NET Framework
- Spire.PDF library
- Clone or download this repository to your local machine.
- Make sure you have the necessary dependencies installed (e.g., Spire.PDF).
- Build the project using Visual Studio or your preferred C# compiler.
- Modify the inputFolderPath, outputFolderPath, and errorFolderPath variables in the Program.cs file to point to your desired input, output, and error folders.
- Compile and run the program.
- Monitor the console output for progress and any error messages.
This program uses a licensed version of Spire.Office 7.4.10. If you are using a free version or do not have a license, your output will be limited or have a watermark.