Skip to main content

convert_bytes

Function convert_bytes 

Source
pub fn convert_bytes<F>(
    file_name: &str,
    bytes: &[u8],
    options: &ConvertOptions,
    limits: ByteConvertLimits,
    on_page: F,
) -> Result<ByteConversionReport>
where F: FnMut(SvgPage) -> Result<()>,
Expand description

Convert a supported document directly from memory and emit completed pages as soon as they are rendered. This API is designed for browser/WASM and server preview callers that should not need temporary files.