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 /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+.
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.
Methods from Deref<Target = Dict<'a>>
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)
.