pdf-rs/pdf

Failing to read PDF due to creation_date

nadenf opened this issue · 1 comments

nadenf commented

The attached PDF is failing with the following error message:

called `Result::unwrap()` on an `Err` value: Try at /Users/naden/.cargo/git/checkouts/pdf-3ef1c528a9b91eec/1f4166f/pdf/src/file.rs:572:23:

Caused by:
    0: Can't parse field info_dict of struct Option < InfoDict >.
    1: Can't parse field creation_date of struct Option < Date >.
    2: Expected primitive String, found primitive Reference instead.

This is off the master branch as of commit: 1f4166f

Sample1.pdf

s3bk commented

Thanks. Didn't think about that when writing it.