Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another panic #42

Closed
manfredlotz opened this issue Oct 6, 2018 · 4 comments
Closed

Another panic #42

manfredlotz opened this issue Oct 6, 2018 · 4 comments

Comments

@manfredlotz
Copy link

Another panic for http://ctan.math.washington.edu/tex-archive/macros/latex/contrib/bg/description.pdf

thread 'main' panicked at 'called Result::unwrap() on an Err value: FromUtf8Error { bytes: [139], error: Utf8Error { valid_up_to: 0, error_len: Some(1) } }', libcore/result.rs:945:5

@J-F-Liu
Copy link
Owner

J-F-Liu commented Oct 7, 2018

This file contains many non-utf8 dictionary key names, like /#8b 277 0 R. Currently Dictionary uses String type for keys, so is unable to handle this.

@manfredlotz
Copy link
Author

Do those names have to be utf8?

I found another local document on my harddisk showing this error. It was produced by Acrobat Distiller 4.05 for Macintosh in year 2001.

@J-F-Liu
Copy link
Owner

J-F-Liu commented Oct 10, 2018

Fixed by 47806f8.

@manfredlotz
Copy link
Author

Tested. Looks good. Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants