Skip to main content

OutputIntentRecord

Struct OutputIntentRecord 

Source
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: u32

Number 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

Source§

fn clone(&self) -> OutputIntentRecord

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OutputIntentRecord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.