Struct pdf_writer::writers::OutputIntent
source · pub struct OutputIntent<'a> { /* private fields */ }
Expand description
Writer for an output intent dictionary. PDF 1.4+.
This describes the output conditions under which the document may be rendered.
Implementations§
source§impl OutputIntent<'_>
impl OutputIntent<'_>
sourcepub fn subtype(&mut self, subtype: OutputIntentSubtype<'_>) -> &mut Self
pub fn subtype(&mut self, subtype: OutputIntentSubtype<'_>) -> &mut Self
Write the /S
attribute. Required.
sourcepub fn output_condition(&mut self, condition: TextStr<'_>) -> &mut Self
pub fn output_condition(&mut self, condition: TextStr<'_>) -> &mut Self
Write the /OutputCondition
attribute.
A human-readable description of the output condition.
sourcepub fn output_condition_identifier(
&mut self,
identifier: TextStr<'_>
) -> &mut Self
pub fn output_condition_identifier( &mut self, identifier: TextStr<'_> ) -> &mut Self
Write the /OutputConditionIdentifier
attribute.
A well-known identifier for the output condition.
sourcepub fn registry_name(&mut self, name: TextStr<'_>) -> &mut Self
pub fn registry_name(&mut self, name: TextStr<'_>) -> &mut Self
Write the /RegistryName
attribute.
The URI of the registry that contains the output condition.
sourcepub fn info(&mut self, info: TextStr<'_>) -> &mut Self
pub fn info(&mut self, info: TextStr<'_>) -> &mut Self
Write the /Info
attribute.
A human-readable string with additional info about the intended output device.
sourcepub fn dest_output_profile(&mut self, profile: Ref) -> &mut Self
pub fn dest_output_profile(&mut self, profile: Ref) -> &mut Self
Write the /DestOutputProfile
attribute.
Required if /OutputConditionIdentifier
does not contain a well-known
identifier for the output condition.
Must reference an ICC profile stream.
Trait Implementations§
source§impl<'a, 'any> Rewrite<'a> for OutputIntent<'any>
impl<'a, 'any> Rewrite<'a> for OutputIntent<'any>
§type Output = OutputIntent<'a>
type Output = OutputIntent<'a>
The writer with the rewritten lifetime.
Auto Trait Implementations§
impl<'a> Freeze for OutputIntent<'a>
impl<'a> RefUnwindSafe for OutputIntent<'a>
impl<'a> Send for OutputIntent<'a>
impl<'a> Sync for OutputIntent<'a>
impl<'a> Unpin for OutputIntent<'a>
impl<'a> !UnwindSafe for OutputIntent<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more