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
.
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)
.