Trait genpdf::PageDecorator [−][src]
pub trait PageDecorator { fn decorate_page<'a>(
&mut self,
context: &Context,
area: Area<'a>,
style: Style
) -> Result<Area<'a>, Error>; }
Expand description
Prepares a page of a document.
If you set an implementation of this trait for a Document
using the
set_page_decorator
method, its decorate_page
method is called every time a new page
is added to the document. The decorator can prepare the page before it is filled with the
actual content. See SimplePageDecorator
for a basic implementation.