Skip to main content

render_pdf

Function render_pdf 

Source
pub fn render_pdf(spec: &PlotSpec) -> Result<Vec<u8>, RenderError>
Expand description

Render spec as a one-page vector PDF with the bundled font embedded.

ยงErrors

When the spec is invalid or the bundled font cannot load.