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

Validation Error: DereferenceStreamDict: wrong type <Identity-H> types.Name #660

Closed
meerkat-mary opened this issue Jul 24, 2023 · 5 comments
Assignees

Comments

@meerkat-mary
Copy link

Hi @hhrutter,

Hope you are well, we're facing an issue where pdf validation is unsuccessful due to a validation error (obj#:37): pdfcpu: DereferenceStreamDict: wrong type <Identity-H> types.Name error for two of our PDFs

We're able to open and view these files successfully in Mac Preview and Acrobat Reader on Windows 7/10 and Mac OS Ventura using the latest commit (0.4.2).

file1_output.log
file2_output.log

Please let me know if you'd like to see the original pdf file (as it contains sensitive PII information, I can email it)

Thank you!
Mary

@hhrutter
Copy link
Collaborator

Hi there!

For one it does not look like you are running the latest release..

Secondly this file is in violation of the PDF spec.
The ToUnicode font dict entry is expected to be a stream and not a name.
Send me the file attached to email, from the log I can see other potential spec violations.
If this is the only one needed for positive validation I am happy to relax validation.

@meerkat-mary
Copy link
Author

Thanks @hhrutter - I've sent you an email containing the two files for further inspection

@hhrutter
Copy link
Collaborator

This is fixed as of the latest commit!

@meerkat-mary
Copy link
Author

Thanks @hhrutter - the file validation works in the latest commit, much appreciated ⭐

@hhrutter
Copy link
Collaborator

👍🏻 You are welcome!

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

No branches or pull requests

2 participants