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.
When options.streaming is true and the format is XLSX, the conversion
processes rows in chunks to bound peak memory during Typst compilation.
This requires the pdf-ops feature for PDF merging.
ยงErrors
Returns ConvertError on parse or render failure.