Skip to content

Compare PDF is a robust client-side utility tool for professional PDF Comparing. By leveraging pixel-level delta detection, it identifies subtle modifications in text and layout that traditional text-based diff tools miss. It provides a secure, private environment for users to ensure document integrity through side-by-side.

License

Notifications You must be signed in to change notification settings

vishalkumar-netizen/Compare-PDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Compare PDF

A high-fidelity, browser-based tool for visually comparing two PDF documents. This application performs a pixel-by-pixel analysis to highlight differences in layout, text, and imagery, making it ideal for legal, design, and engineering document audits.

๐Ÿš€ Key Features

Pixel-Perfect Comparison: Detects even the slightest movements in text, margins, or image placement.

Visual Highlighting: Differences are highlighted in a distinct red overlay on top of the original document.

Flexible Comparison Modes:

Sequential Mode: Automatically pairs pages (Page 1 vs Page 1, etc.).

Manual Mode: Compare any page from Document A with any page from Document B.

Local Processing: Your files never leave your browser. All rendering and pixel math are performed client-side for maximum privacy.

PDF Export: Download the comparison results as a new PDF with differences highlighted.

๐Ÿ› ๏ธ Technology Stack

HTML5/Tailwind CSS: For a clean, responsive user interface.

PDF.js: Mozilla's library for high-fidelity PDF rendering to canvas.

jsPDF: For generating the final comparison report.

Vanilla JavaScript: Lightweight and fast pixel manipulation logic.

๐Ÿ“– How to Use

Upload: Select or drag-and-drop your "Original" and "Modified" PDFs into the designated zones.

Compare: Click "Load & Start".

Inspect:

Scroll through the side-by-side view.

Use the Manual Mode toggle if you need to compare specific pages out of order (e.g., comparing Page 3 of a new draft to Page 5 of an old one).

Export: Use the "Download Result" button to save a copy of the visual differences.

๐Ÿ”’ Privacy

This tool is designed with security in mind. It uses the FileReader API and Canvas API to process documents entirely on your machine. No server-side storage or processing is involved.

About

Compare PDF is a robust client-side utility tool for professional PDF Comparing. By leveraging pixel-level delta detection, it identifies subtle modifications in text and layout that traditional text-based diff tools miss. It provides a secure, private environment for users to ensure document integrity through side-by-side.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages