Files
pdfcraft/crates/content/src
aiongg 0a30b4e081 fix(preflight): read content colour one operator at a time
content_colour parsed each content stream into a full list of operators
before looking at any of them, so a small compressed stream of millions of
tiny operators became gigabytes of parsed operators in memory. The content
parser's loop is now an iterator (pdfcraft_content::ops), which parse
collects; preflight reads it one operator at a time and stops once gray,
RGB and CMYK are all found.
2026-10-22 17:57:53 +00:00
..