A PDF comparison tool which helps to view the differences side-by-side
Project description
Project Description
PDFCompareTrueDiff
This is a python package which can be used to compare and highlight the differences between two PDFs.
Installation
-
Make sure your python version is >= 3.8
-
Make sure you have upgraded your pip version
py -m pip install --upgrade pip
Requirements
- For virtual environments in windows, make sure poppler is installed
venv - pip install poppler
- For linux
sudo apt-get install poppler-utils
- For conda
conda install -c conda-forge poppler
From Pypi
pip install PDFCompareTrueDiff
The input is two PDF files along with the path where the final image need to be saved. The output will have a folder which contain the equalized PDF and a horizontally stacked image of both PDFs to give a side-by-side comparison of each page. The image will be saved as 'Final.png'
Sample code
import PDFCompareTrueDiff
input1 = "path to first PDF"
input2 = "path to second PDF"
output = "path to the directory to save the equalized PDFs and final image"
PDFCompareTrueDiff.document_equalizer(input1, input2, output)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for PDFCompareTrueDiff-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64356e16e4aaf2db74f7a30b962b99c8f9c0a5a364a1e1dbe9a83998b3e7eb6a |
|
MD5 | b2acbf3cabb1b8834e49c48489e5e908 |
|
BLAKE2b-256 | 4e86adfc5cf7dc2271b1eecd6c45b8d879a69e46423d89a7cef98fde12a65c17 |