mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-02 06:28:49 -06:00
A malformed token ended the content stream where it stood, so the renderer, text extraction, Find and search-based redaction all lost the rest of the page -- while the edit reader, MuPDF and pdftotext read it (#3565, #3568). A redaction that cannot see the text below the bad token cannot remove it, which is the part that matters. Each malformed shape is stepped over instead: an unterminated string, a number that is only a sign or a dot, a name with a bad hex escape, an unbalanced dictionary or array. Content after an inline image whose data holds `EI` is still read, under a bounded lookahead. Rebased onto main, 1,898 commits on: the tokenizer is still vendor/hayro-syntax/src/content/mod.rs and applied as it was, and render's raster.rs is split, so the two tests went to render/raster/tests.rs.