How It Works Under the Hood
Both PDFs render through `pdfjs-dist` at `1.25×` scale onto isolated canvases, extracting raw `Uint8ClampedArray` RGBA pixel buffers and baseline-sorted text layers. Pixels whose mean RGB channel delta exceeds your threshold are flagged in bright rose-magenta over a dimmed grayscale page backdrop.
Step-by-Step Instructions
Load your Original PDF (`v1`) and Revised PDF (`v2`) locally.
Use the Page selector to step through corresponding pages (`1 / N`).
Adjust the Pixel Threshold slider (`5–60`) to filter out minor anti-aliasing noise.
Inspect side-by-side renders, percentage pixels changed, and the color-coded Text Line Diff below.
Key Features & Performance
- Dual inspection: catches BOTH silent visual/stamp/image changes AND textual edits simultaneously
- Adjustable pixel-channel tolerance slider prevents font-hinting jitter from causing false alarms
- Highlights modified regions in vivid rose-magenta over a clean faded page outline
- Gracefully handles mismatched page counts by flagging missing pages without crashing
- Zero external uploads: ideal for M&A contracts, legal redlines, and confidential print proofs
Methodology, Formulas & Technical Standards
Pixel comparison calculates mean RGB Euclidean-style channel delta `(|R1-R2| + |G1-G2| + |B1-B2|) / 3` across `max(w1, w2) × max(h1, h2)` dimensions; text comparison computes exact LCS line diff.
Common Real-World Use Cases
- Verifying an edited vendor agreement before wet/digital signature execution
- Checking design proof revisions for subtle logo alignment or pricing typography changes
- Auditing auto-generated PDF invoices or compliance reports between release builds
- Confirming no hidden whitespace or signature blocks shifted after PDF compression
Worked Examples & Edge Cases
Visual Layout + Pricing Audit
Invoice v1 ($1,200) vs Revised v2 ($1,450)
Highlights the changed line item box in magenta pixel diff + shows `- $1,200` / `+ $1,450` in line diff
Works even on flattened/rasterized scanned edits where no text layer changed.
Anti-Aliasing Noise Tuning
Threshold: 18 vs Threshold: 40
Filters minor subpixel rendering noise while keeping structural ink edits clear
Raise threshold when comparing scans made at slightly different compression ratios.
Limitations, Scope & Accuracy Notes
- • Comparisons operate page-by-page by index (`page N vs page N`); inserting an extra cover page shifts subsequent page alignments.
- • Renders interactively one page at a time to conserve browser canvas memory on huge reports.
Local Browser Processing & Privacy
Traditional web converters upload your documents, snippets, or media files to remote servers. PDF Visual Pixel Diff & Text Revision Comparer runs inside your browser tab:
Your input text and files are processed locally without uploading payloads to a processing server.
Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).
Working outputs stay in your browser tab and are released when you reset the tool or close the tab.
Frequently Asked Questions
Can this detect visual edits on scanned PDFs that lack selectable text?
Yes. The pixel canvas comparator works directly on rendered raster pixels regardless of whether searchable text exists.
What does Pixel Threshold control?
It sets the average per-channel RGB difference (`0–255`) required before flagging a pixel as changed. Higher thresholds ignore JPEG compression noise.
What happens if the two PDFs have different page dimensions?
The diff canvas expands to `max(width)` by `max(height)` and highlights out-of-bounds margins automatically.
Are legal or financial PDFs transmitted anywhere?
No. Rendering, pixel comparisons, and LCS text diffs happen strictly in browser memory.
Explore Related Micro-Tools
Text Diff Checker & Patch Generator
Compare two text blocks line-by-line or word-by-word and export unified .patch files
Local PDF Text & Page Extractor
Extract clean selectable text or Markdown from PDF page ranges offline via pdfjs-dist with zero file uploads
PDF Metadata Inspector & Scrubber
View hidden Author, Creator, Producer & XMP metadata inside PDFs — edit or scrub cleanly offline