Skip to main content

DisplayListMsg

Type Alias DisplayListMsg 

Source
pub type DisplayListMsg = (DisplayList, f64, u32, u32, Option<Arc<Vec<u8>>>, bool);
Expand description

Raw display list tuple sent by Context at each showpage: (DisplayList, dpi, page_width, page_height, effective_cmyk_bytes, cmyk_proofing).

The 5th element carries the CMYK ICC profile that was effectively used to build the display list (e.g. a PDF’s OutputIntent when --use-output-intent is active). The viewer uses these bytes to build its render-time ICC cache so runtime overprint math stays consistent with the baked RGB values in the display list. None means “use the CLI-level default” (typically the system CMYK profile).

The 6th element (cmyk_proofing) is true when the bake-time ICC cache had PDF/X proofing enabled — i.e. ICCBased profiles in the display list were color-managed through the OutputIntent before reaching sRGB. The render-thread cache must run with the same flag so its image conversions produce the same RGB the bake produced for vector fills. PostScript pages always pass false (no PDF/X concept).