Struct pdf_writer::writers::ViewerPreferences[][src]

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

Writer for a viewer preference dictionary.

This struct is created by Catalog::viewer_preferences.

Implementations

Write the /HideToolbar attribute to set whether the viewer should hide its toolbars while the document is open.

Write the /HideMenubar attribute to set whether the viewer should hide its menu bar while the document is open.

Write the /FitWindow attribute to set whether the viewer should resize its window to the size of the first page.

Write the /CenterWindow attribute to set whether the viewer should center its window on the screen.

Write the /NonFullScreenPageMode attribute to set which chrome elements the viewer should show for a document which requests full screen rendering in its catalog when it is not shown in full screen mode.

Panics if mode is PageMode::FullScreen.

Write the /Direction attribute to aid the viewer in how to lay out the pages visually. PDF 1.3+.

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.