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

pdDocOpen() crash (PDF created by pdfLatex) #42

Closed
gwierzchowski opened this issue Dec 15, 2018 · 3 comments
Closed

pdDocOpen() crash (PDF created by pdfLatex) #42

gwierzchowski opened this issue Dec 15, 2018 · 3 comments

Comments

@gwierzchowski
Copy link
Contributor

pdDocOpen() crash with following error:

ArgumentError: extra characters after whitespace in "1502\n6"

when called against file created by Latex (attached).
Latex version: pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (KDE Neon / Ubuntu 16.04 based)
I will submit PR to fix soon.
outline.pdf

gwierzchowski added a commit to gwierzchowski/PDFIO.jl that referenced this issue Dec 15, 2018
@sambitdash
Copy link
Owner

sambitdash commented Dec 16, 2018

readuntil should not have been used at all in the first place. PDFs cannot be assumed as UTF-8.

So data should be read byte by byte and compared with ispdfspace. Commented the same in the PR as well.

@gwierzchowski
Copy link
Contributor Author

I came to idea to use already implemented function parse_number.
Check updated PR.

@sambitdash
Copy link
Owner

Fixed

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