Function html2pdf::html_to_pdf

source ·
pub fn html_to_pdf<I, O>(
    input: I,
    output: O,
    pdf_options: PrintToPdfOptions,
    launch_options: LaunchOptions<'_>,
    wait: Option<Duration>
) -> Result<(), Error>
where I: AsRef<Path> + Debug, O: AsRef<Path> + Debug,
Expand description

Run HTML to PDF with headless_chrome

§Panics

Sorry, no error handling, just panic

§Errors

Could fail if there is I/O or Chrome headless issue