Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PDFCompareTrueDiff-1.0.1.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

PDFCompareTrueDiff-1.0.1-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page