pdf-diff

Compares the text layers of two PDFs and outputs the bounding boxes of changed text as JSON, identifying exactly which text regions differ between two versions of a document rather than just reporting that they differ. Then rasterizes the changed pages to a PNG with red outlines drawn around the differences, giving a visual diff alongside the structured JSON output. Useful for reviewing what actually changed between two revisions of a generated or edited PDF.