Implement the pdftract verify-receipt subcommand and the underlying verifier protocol. The verifier validates receipts against original PDFs by checking: (1) PDF fingerprint matches, (2) at least one span has bbox overlap >= 90% IoU, (3) that span's NFC-normalized SHA-256 equals the receipt's content_hash. Modules: - crates/pdftract-core/src/receipts/verifier.rs: verifier protocol logic - crates/pdftract-cli/src/verify_receipt.rs: CLI integration - crates/pdftract-core/src/document.rs: PDF parsing helpers Exit codes: - 0: success - 10: fingerprint mismatch - 11: bbox mismatch (no span meets 90% IoU threshold) - 12: content hash mismatch - 1: extraction failed Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| pdftract-cer-diff | ||
| pdftract-cli | ||
| pdftract-core | ||
| pdftract-py | ||