mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-10 13:01:29 +00:00
The run and byte limits were per page, and a glyph's /ToUnicode text can be 256 UTF-16 units, so a short content stream could keep gigabytes of removed text across pages. The document now keeps at most 16 MiB; past that the rest is not kept and the metadata check fails closed, as for any other text it couldn't keep (CodeRabbit's retained concern on #2539). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pq7HyG234xeYkJfr41E6iP