pub fn set_attachment_file(
edit: &mut EditDoc<'_>,
limits: &Limits,
index: usize,
bytes: &[u8],
) -> Result<bool, Error>Expand description
Replaces attachment index’s embedded file with a new stream carrying
/Type /EmbeddedFile, /DL <len> and /Params << /Size <len> /CheckSum <md5> >>, linked as /EF << /F <ref> >> on the file
specification; a MIME type or date the old stream had is not carried
over. Ok(false) when there is no such attachment.
§Errors
When the document has no catalog to hold the tree.