Struct pdf_writer::writers::Page[][src]

pub struct Page<'a> { /* fields omitted */ }
Expand description

Writer for a page dictionary.

This struct is created by PdfWriter::page.

Implementations

Write the /Parent attribute. Required.

Write the /LastModified attribute. PDF 1.3+.

Write the /MediaBox attribute. This is the size of the physical medium the page gets printed onto.

Write the /CropBox attribute. This is the size of the area within which content is visible.

Write the /BleedBox attribute. This is the size of the area within which content is visible in a print production environment. Most production-aiding marks should be outside of this box. PDF 1.3+.

Write the /TrimBox attribute. This is the size of the produced document after trimming is applied. PDF 1.3+.

Write the /ArtBox attribute. This is the area that another program importing this file should use. PDF 1.3+.

Start writing the /Resources dictionary.

Write the /Contents attribute as reference to a single content stream.

Such a content stream can be created using the Content builder and written to the file using PdfWriter::stream.

Write the /Contents attribute as an array.

Write the /Rotate attribute. This is the number of degrees the page should be rotated clockwise when displayed. This should be a multiple of 90.

Start writing the /Group dictionary to set the transparency settings for the page. PDF 1.4+.

Write the /Dur attribute. This is the amount of seconds the page should be displayed before advancing to the next one. PDF 1.1+.

Start writing the /Trans dictionary. This sets a transition effect for advancing to the next page. PDF 1.1+.

Start writing the /Annots (annotations) array.

Write the /Tabs attribute. This specifies the order in which the annotations should be focussed by hitting tab. PDF 1.5+.

Methods from Deref<Target = Dict<'a>>

The number of written pairs.

Start writing a pair with an arbitrary value.

Write a pair with a primitive value.

This is a shorthand for dict.insert(key).primitive(value).

Write a sequence of pairs with primitive values.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Start writing the object.

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.