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
File details
Details for the file PDFCompareTrueDiff-1.0.1.tar.gz
.
File metadata
- Download URL: PDFCompareTrueDiff-1.0.1.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d2dfa1c414caae21f46b331c591bb6ee13e311839c547977c5b208382e9d1d2d
|
|
MD5 |
1974924acb99921424d05d44e5170a9f
|
|
BLAKE2b-256 |
251fb4ce4e86ca25bb8a374ee76c93f6a978d1c126981f56914719611ae2ed19
|
File details
Details for the file PDFCompareTrueDiff-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: PDFCompareTrueDiff-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
64356e16e4aaf2db74f7a30b962b99c8f9c0a5a364a1e1dbe9a83998b3e7eb6a
|
|
MD5 |
b2acbf3cabb1b8834e49c48489e5e908
|
|
BLAKE2b-256 |
4e86adfc5cf7dc2271b1eecd6c45b8d879a69e46423d89a7cef98fde12a65c17
|