Struct printpdf::types::plugins::graphics::pdf_resources::PdfResources [] [src]

pub struct PdfResources {
    pub xobjects: XObjectList,
    pub patterns: PatternList,
    pub graphics_states: ExtendedGraphicsStateList,
    pub layers: OCGList,
}

Struct for storing the PDF Resources, to be used on a PDF page

Fields

External graphics objects

Patterns used on this page. Do not yet, use, placeholder.

Graphics states used on this page

Layers / optional content ("Properties") in the resource dictionary

Methods

impl PdfResources
[src]

[src]

Creates a new PdfResources struct (resources for exactly one PDF page)

[src]

Add a graphics state to the resources

[src]

Adds an XObject to the page

[src]

STUB: Adds a pattern to the resources, to be used like a color

[src]

See XObject::Into_with_document. The resources also need access to the layers (the optional content groups), this should be a Vec<lopdf::Object::Reference> (to the actual OCG groups, which are added on the document level)

Trait Implementations

impl Default for PdfResources
[src]

[src]

Returns the "default value" for a type. Read more

impl Debug for PdfResources
[src]

[src]

Formats the value using the given formatter.

impl Clone for PdfResources
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more