Skip to main content

decode_embedded_file_stream

Function decode_embedded_file_stream 

Source
pub fn decode_embedded_file_stream(
    resolver: &Resolver<'_>,
    obj_num: u32,
    gen_num: u16,
) -> Result<Vec<u8>, PdfError>
Expand description

Decode the bytes of an embedded-file stream by (obj_num, gen_num).

This is a thin wrapper around Resolver::stream_data for callers who already hold an EmbeddedFile and want to pull the bytes without going through the higher-level PdfDocument::embedded_file_bytes.