-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Custom fonts don't render in Adobe Acrobat reader when using Node.js rendering #2680
Comments
Duplicate of #2675? |
Unfortunately no. I'm using |
Hi @EvHaus Add this to your overrides/resolutions
We had the same issues, having these fixed all of them. But we did have this exact issue, where they would not open up in Adobe. This fixed it. |
Thanks for sharing @PelosiTech. Unfortunately those resolutions do not resolve this specific problem. Those resolutions fix diegomura/jay-peg#4 and #578 but does not fix this font problem. |
Seems like this is working for me now as of @react-pdf/renderer@3.4.5. Closing. |
Describe the bug
When rendering via Node.js and
renderToStream
, I can't seem to get any custom TTF fonts to work in Adobe Acrobat in the generated PDF. They work just fine in Chrome, Safari and other PDF viewers though.Interestingly, I cannot reproduce this using the REPL (which I believe doesn't browser rendering).
To Reproduce
Here is a sample PDF file that I generated. Try openening it in Chrome (it will work) and then in Adobe Acrobat (it will fail) with errors.
sample.pdf
The code for this file is:
Expected behavior
A PDF with text that renders in Adobe Acrobat.
Screenshots
This error shows on the first page
And then this one shows up after scrolling additional pages
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: