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

Failed to decode downloaded font in Chrome #49

Open
yoolandes opened this issue Mar 17, 2021 · 1 comment
Open

Failed to decode downloaded font in Chrome #49

yoolandes opened this issue Mar 17, 2021 · 1 comment

Comments

@yoolandes
Copy link

Chrome/Firefox seems to have problems to encode some embedded fonts when opening the ouput file although Pdf2Dom does not log any error/information while processing the input file.

Expected Behavior

Chrome/Firefox are able to encode the embedded font files.

Current Behavior

Chrome/Firefox cant encode some font files. The logs state:

Chrome

Failed to decode downloaded font: data:application/x-font-woff;base64,###base64### Minted_FontList.html:1 OTS parsing error: CFF : Failed to parse table

Firefox

downloadable font: CFF : Failed to parse table (font-family: "NYDYER Theodore" style:normal weight:400 stretch:100 src index:0) source: data:application/x-font-woff;base64,###base64###

Steps to Reproduce

  1. Download https://cdn3.minted.com/files/content/community/Minted_FontList.pdf
  2. Run "java -jar .\PDFToHTML.jar .\Minted_FontList.pdf"
  3. Open in latest Chrome/Firefox.
@m-abboud
Copy link
Contributor

This is a problem with https://github.com/m-abboud/FontVerter font conversion not Pdf2Dom. But I don't really have time to work on open source anymore.

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