mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-09 12:32:52 +00:00
ISO 32000-2 7.3.8.2: Length "indicates how many bytes of the PDF file are used for the stream's data". cos and hayro-syntax used /Length only when `endstream` followed it, and otherwise searched for the keyword; with none left in the file the stream was an error and its object null. A producer that writes `endstrea` after every stream lost every font and every page's content, and its pages drew blank with no warning. With no `endstream` left, a /Length the file holds is now the stream's extent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn