pub fn html_to_pdf(
html: &str,
output: &Path,
options: &PdfOptions,
) -> Result<u64, RenderError>Expand description
Render an HTML string to a PDF file.
Launches headless Chrome, loads the HTML, and prints to PDF. The HTML is written to a temporary file for Chrome to navigate to.