Closed Boltzmachine closed 6 months ago
You need to decompress before decoding
if let Ok(content_stream) = doc.get_object(object_id).and_then(Object::as_stream_mut) {
content_stream.decompress();
let content = content_stream.decode_content().unwrap();
}
A lot files on my computer cannot be read properly. I read the contents by
For example, for the file file1.pdf
It prints