pub struct OutputIntentRecord {
pub subtype: Vec<u8>,
pub output_condition_identifier: Option<Vec<u8>>,
pub output_condition: Option<Vec<u8>>,
pub registry_name: Option<Vec<u8>>,
pub info: Option<Vec<u8>>,
pub dest_output_profile: Option<Arc<Vec<u8>>>,
pub n: u32,
}Expand description
/OUTPUTINTENT payload — one PDF/X or PDF/A OutputIntent declaring the
destination color rendering condition for the document. The writer
embeds [dest_output_profile] as an /ICCBased stream object and
produces an entry in /Catalog /OutputIntents.
subtype is the /S name (e.g. b"GTS_PDFX", b"GTS_PDFA1"). It’s
stored as raw bytes so the writer can pass through unknown subtypes
verbatim without losing information.
The text fields (output_condition_identifier, output_condition,
registry_name, info) are PDF text strings; they round-trip as
raw bytes to preserve any non-UTF-8 encoding the producer used.
Fields§
§subtype: Vec<u8>§output_condition_identifier: Option<Vec<u8>>§output_condition: Option<Vec<u8>>§registry_name: Option<Vec<u8>>§info: Option<Vec<u8>>§dest_output_profile: Option<Arc<Vec<u8>>>Decompressed ICC profile bytes from the source PDF’s
/DestOutputProfile stream. None when the source intent had
no embedded profile (rare for PDF/X but legal per PDF spec).
n: u32Number of color components in the destination profile (1 for
Gray, 3 for RGB, 4 for CMYK). Derived from the ICC header at
parse time; the writer emits it as the /N entry on the
/ICCBased profile stream.
Trait Implementations§
Source§impl Clone for OutputIntentRecord
impl Clone for OutputIntentRecord
Source§fn clone(&self) -> OutputIntentRecord
fn clone(&self) -> OutputIntentRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more