Skip to main content

bytes_for

Function bytes_for 

Source
pub fn bytes_for(content: &ExportContent) -> Vec<u8> 
Expand description

The bytes to write for content: the SVG or PDF source verbatim, or — for PNG — rasterized. A failed rasterization falls back to nothing so the export produces an empty file rather than crashing the worker.