mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 15:55:14 +00:00
From PdfCraft #3438 with its look-ahead bound (01af6cba3): an inline image without a filter ends at the byte length its /W, /H, /CS, /BPC and /IM give when white space and EI follow there, so an EI inside its samples does not end it. Anything else keeps the EI look-ahead. A computed end past the content window waits for more data only while it fits within MAX_DECODED_STREAM. Tests: PdfCraft's six content::tests unit tests.