Skip to main content

convert_bytes

Function convert_bytes 

Source
pub fn convert_bytes(
    data: &[u8],
    format: Format,
    options: &ConvertOptions,
) -> Result<ConvertResult, ConvertError>
Expand description

Convert raw bytes of a known format to PDF bytes with warnings.

Use this when you already have the file contents in memory and know the Format.

ยงErrors

Returns ConvertError on parse or render failure.