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

Failure to validate/optimize on a particular PDF file #69

Closed
Mihai-B opened this issue Mar 11, 2019 · 4 comments

Comments

@Mihai-B
Copy link

commented Mar 11, 2019

Hi,
First of all thank you very much for the pdf library, I think this one is one of the most advance library for pdf processing that is out there in GO lang.
However I do have a problem on a particular file that I do not know if I am doing something wrong or I found a small bug, please note that I am very very new to GO, so here it goes:

I have a file that I cannot validate/optimise/extract because it gives an error like this:
dict=type1FontDict required entry=FirstChar missing
Now the error seems to be happening because of a missing font? or is it a corrupted pdf file somehow?
Any solution regarding this?

Please note that the exact same file I can open it, and modify it in java with no problem.

@hhrutter

This comment has been minimized.

Copy link
Collaborator

commented Mar 11, 2019

Can you share a test file for analysis? if not please share the output of pdfcpu validate -vv. if relaxed validation chokes we can extend it.

@Mihai-B

This comment has been minimized.

Copy link
Author

commented Mar 11, 2019

@hhrutter I have emailed you a file so you can debug more easily.

hhrutter added a commit that referenced this issue Mar 13, 2019
@hhrutter

This comment has been minimized.

Copy link
Collaborator

commented Mar 13, 2019

Fixed with latest commit (967c250).
Thanks for reporting this 💚

@hhrutter hhrutter closed this Mar 13, 2019

@Mihai-B

This comment has been minimized.

Copy link
Author

commented Mar 14, 2019

Works perfectly. Thnx for the quick fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.