pub struct OutputIntent {
pub subtype: String,
pub output_condition_identifier: Option<String>,
pub output_condition: Option<String>,
pub info: Option<String>,
pub dest_output_profile: Option<ObjectId>,
pub dest_profile_components: Option<i64>,
}Expand description
One /OutputIntents entry.
Fields§
§subtype: String/S subtype name, e.g. "GTS_PDFX", "GTS_PDFA1", "ISO_PDFE1".
Empty when the entry omits /S.
output_condition_identifier: Option<String>/OutputConditionIdentifier — the characterized printing condition,
usually a registry key such as "CGATS TR 001". Decoded as a text
string (UTF-16BE with BOM, else PDFDocEncoding bytes).
output_condition: Option<String>/OutputCondition — human-readable condition name, if present.
info: Option<String>/Info — additional human-readable description, if present.
dest_output_profile: Option<ObjectId>/DestOutputProfile — the embedded ICC profile stream’s object id.
None when the intent only names an external (registry) profile.
dest_profile_components: Option<i64>/N (component count) read off the /DestOutputProfile stream dict
without decoding the profile. None when the key is absent/unreadable.
Implementations§
Source§impl OutputIntent
impl OutputIntent
Sourcepub fn has_cmyk_profile(&self) -> bool
pub fn has_cmyk_profile(&self) -> bool
Cheap heuristic — usable without decoding the profile — for whether this
intent looks like it can colour-manage DeviceCMYK: it has an embedded
profile whose /N is 4 or absent. It is advisory (e.g. for zpdf info):
the render path is authoritative, accepting a profile only on its
compiled channel count, so a profile with a mistyped /N is still
honoured there even though this returns false.
Trait Implementations§
Source§impl Clone for OutputIntent
impl Clone for OutputIntent
Source§fn clone(&self) -> OutputIntent
fn clone(&self) -> OutputIntent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more