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

Skip compression for ill-formed fonts #278

Merged
merged 1 commit into from May 5, 2023
Merged

Skip compression for ill-formed fonts #278

merged 1 commit into from May 5, 2023

Conversation

astefanutti
Copy link
Owner

Some fonts written in the PDF returned by Puppeteer may be ill-formed. This is a work-around that skips font compression in that case, until it's fixed in Puppeteer > Chromium > Skia.

This happens for system fonts like Helvetica Neue for which cmap table is missing.

Fixes #202.

@NMarkgraf
Copy link

Thank you very much!
It fits my current needs to 90%.
Vier PDF viewers PDF Expert and Preview (from Apple) can read such generated files. Adobe Acrobat Reader refuses the document as unreadable and uncorrectable ;-) Maybe that will be fixed, when Puppeteer will fix it in Skia!
Until than, again ... THANK YOU!

@astefanutti astefanutti merged commit fc465c4 into master May 5, 2023
2 checks passed
@astefanutti astefanutti deleted the pr-16 branch May 5, 2023 13:51
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

Successfully merging this pull request may close these issues.

Error: Read ttf table data error at 2.11.0
2 participants