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

parse error: % within StringLiteral #356

Closed
lucashmorais opened this issue Jul 19, 2021 · 3 comments
Closed

parse error: % within StringLiteral #356

lucashmorais opened this issue Jul 19, 2021 · 3 comments
Assignees
Labels

Comments

@lucashmorais
Copy link

Hi there,

First of all, thank you for the amazing work on this library. I write this just to point out that I found a probably malformed PDF that is well handled by some other tools, but not by this one. The error I get by running validation on it is Read: xRefTable failed: pdfcpu: scanLineRaw: returning nothing. The sample file is the following:

Sample

I run the tests with version 0.3.12, 0.3.11, and a more recent custom-built binary. I am not sure what writer might have generated the file, but I suppose it is either an old version of PowerPoint or LibreOffice Impress.

Thanks,
Lucas

@lucashmorais
Copy link
Author

Just in case it might be useful, here is the repaired version of the same file produced by PDF2GO, which succeeds at validation:

Repaired sample

@hhrutter hhrutter self-assigned this Jul 19, 2021
@hhrutter
Copy link
Collaborator

Thanks for reporting this 👍

@hhrutter hhrutter changed the title Issue with a (probably) malformed PDF parse error: % within StringLiteral Jul 19, 2021
@hhrutter hhrutter added bug and removed investigate labels Jul 19, 2021
@hhrutter
Copy link
Collaborator

This is fixed with the latest commit.

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

No branches or pull requests

2 participants