Skip to main content

export_pdf

Function export_pdf 

Source
pub fn export_pdf(snapshot: &ProcessSnapshot) -> Result<String>
Expand description

Render a PDF report for the given snapshot and return the output filename.

The implementation searches for a supported renderer (wkhtmltopdf, weasyprint, Chromium/Chrome). It writes an HTML file to the system temp directory, invokes the renderer, then removes the temp HTML file.