Junfeng Liu

Results 56 comments of Junfeng Liu

can you try some other pdf files?

Don't print out `doc.trailer`. I tries some file with `println!("version: {:#?}, max_id: {:#?}", &doc.version, &doc.max_id)`, all are ok.

Try add a transform to the page content.

PRs are welcome, thanks

Also try prune unused objects.

You can use `insert_form_object` method defined in xobject.rs. And look at examples/add_barcode.rs for how to use it.

`Stream.decompress()` only decompress content streams and skip images. The image data is also compressed, you may extract and save it to see whether it is readable by an image viewer.

Maybe the stream data is encrypted, try some unencrypted files first.

There are two types of passwords. The User password, or sometimes called the “open” password is used to open a PDF file if a password is set. The Owner password,...