Function wkhtmltopdf::lowlevel::pdf_init [] [src]

pub fn pdf_init() -> Result<PdfGuard>

Initializes wkhtmltopdf

This function will only initialize wkhtmltopdf once per process which is a fundamental limitation of wkhtmltopdf. Calling PdfApplication::new() has the same effect of initializing wkhtmltopdf.

Subsequent attempts to initialize wkhtmltopdf will return Error:IllegalInit