[−][src]Struct printpdf::types::plugins::graphics::xobject::OptionalContentGroup
Optional content group, for PDF layers. Only available in PDF 1.4 but (I think) lower versions of PDF allow this, too. Used to create Adobe Illustrator-like layers in PDF
Fields
name: String
(Required) The name of the optional content group, suitable for presentation in a viewer application’s user interface.
intent: Vec<OCGIntent>
(Optional) A single intent name or an array containing any combination of names. PDF 1.5 defines two names, View and Design, that indicate the intended use of the graphics in the group. Future versions may define others. A processing application can choose to use only groups that have a specific intent and ignore others. Default value: View. See “Intent” on page 368 for more information.
usage: Option<Dictionary>
(Optional) A usage dictionary describing the nature of the content controlled by the group. It may be used by features that automatically control the state of the group based on outside factors. See “Usage and Usage Application Dictionaries” on page 380 for more information.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OptionalContentGroup
[src]
impl Send for OptionalContentGroup
[src]
impl Sync for OptionalContentGroup
[src]
impl Unpin for OptionalContentGroup
[src]
impl UnwindSafe for OptionalContentGroup
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,