Struct printpdf::types::plugins::graphics::xobject::OptionalContentGroup [] [src]

pub struct OptionalContentGroup {
    pub name: String,
    pub intent: Vec<OCGIntent>,
    pub usage: Option<Dictionary>,
}

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

(Required) The name of the optional content group, suitable for presentation in a viewer application’s user interface.

(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.

(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

impl Debug for OptionalContentGroup
[src]

[src]

Formats the value using the given formatter.