mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-24 18:17:44 -06:00
uses_device_colour found content streams by their dictionaries and split their bytes on whitespace. It skipped form XObjects with /Type /XObject and tiling patterns, missed `cs`/`CS` with a device space, inline images and operators before a delimiter, and took a `k` in a string, a comment, inline image data, a font program or an ICC profile for DeviceCMYK. A CMYK logo in a form therefore got an sRGB output intent and passed pdfa_verify. Content streams are now found by role (page /Contents, Type 3 glyphs, forms, appearance streams, tiling patterns) and read with pdfcraft_content::parse. Reading stops once all three device spaces are seen.