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

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

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.