Struct wkhtmltopdf::pdf::PdfApplication [−][src]
pub struct PdfApplication { /* fields omitted */ }
Structure for initializing the underlying wkhtmltopdf
This is effective a wrapper around PdfGuard
that provides
a method for instantiating one a builder
Implementations
impl PdfApplication
[src]
impl PdfApplication
[src]pub fn new() -> Result<PdfApplication>
[src]
Initializes Wkhtmltopdf
Wkhtmltopdf will remain initialized for this process until PdfApplication
is dropped.
Wkhtmltopdf may only be initialized once per process, and
and all PDF generation must happen from the same thread that initialized wkhtmltopdf.
Subsequent attempts to initialize wkhtmltopdf will return Error:IllegalInit
.
pub fn builder(&self) -> PdfBuilder
[src]
Instantiate a PdfBuilder
This method borrows the self
mutably to ensure only that one builder is active at a time which is a
basic limitation of wkhtmltopdf.
Parallel execution is currently only possible by spawning multiple processes.
Auto Trait Implementations
impl RefUnwindSafe for PdfApplication
impl RefUnwindSafe for PdfApplication
impl !Send for PdfApplication
impl !Send for PdfApplication
impl !Sync for PdfApplication
impl !Sync for PdfApplication
impl Unpin for PdfApplication
impl Unpin for PdfApplication
impl UnwindSafe for PdfApplication
impl UnwindSafe for PdfApplication