This Python script facilitates the comparison of PDF files between a local source folder and a remote server. The script logs results, highlighting identical and non-identical files based on size and page count. It employs pdfplumber
for PDF handling and paramiko
for SSH connections.
- Compares PDF files in a source folder with corresponding files on a remote server.
- Logs results, indicating identical and non-identical files along with specific differences.
- Provides error handling for issues like missing source files or connection problems with the target server.
- Set the source folder, target server details, CSV file listing file pairs, and log file paths in the script.
- Run the script (
compare_pdfs.py
) to perform PDF comparisons. - Review the generated log file (
comparison_log.txt
) for detailed results.
-
Install required libraries:
pip install pdfplumber paramiko