mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
The residual scan from the report is a CCITT Group 4 single-image PDF, the codec class pdfjs rasterization is known to fail on. Chain checks: a pdfjs open failure or throw already lands as render-failed with the error text annotated; the zero-pages shape now annotates too instead of returning silently. An end-to-end test drives the REAL rasterizer through prepareVisionInput and pins the rasterFailed mapping; the test header documents why a tiny in-repo CCITT fixture is deliberately not checked in (probed against this pdfjs version, it renders the page as blank instead of throwing, so the fixture cannot deterministically fail and would be flaky across upgrades). The detail view's raster-failed line now names scanned fax compression formats as a known cause, in all six locales. Refs #776