Added
- pdfmux now says which OCR readings to check against the original page. Extracted text is never changed.
- Low-confidence lines: RapidOCR line scores are kept. Lines under 0.92 are flagged (
PDFMUX_OCR_MIN_LINE_SCORE; 0 turns it off).
- Dates that cannot be right, on every OCR'd page: impossible, before 1900, more than 10 years ahead, or later than today when the nearest label is a past event (collected, DOB, reported). Next / due / valid until / expiry / appointment make a future date expected.
- Where they show up: warnings (CLI, MCP, Markdown note), JSON
review_flags, ConversionResult.review_flags, PageResult.review_flags, and streaming page events.
- Measured on 755 degraded lab-report lines: 83 of 130 misreads flagged, 2 of 625 correct lines flagged.
Fixed
- The result cache could hide an upgrade. The cache key now includes the pdfmux version, so results cached by an older version are not reused.
Full notes: CHANGELOG.md. PRs #59, #60.