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

Printing messes with the fonts #66

Open
c0h1b4 opened this issue Feb 27, 2018 · 5 comments · May be fixed by #156
Open

Printing messes with the fonts #66

c0h1b4 opened this issue Feb 27, 2018 · 5 comments · May be fixed by #156

Comments

@c0h1b4
Copy link

c0h1b4 commented Feb 27, 2018

I am having issues when printing with the .print() command.

https://jsfiddle.net/5k4ptmqg/311/

As you can see in the jsfiddle it is the same example from the main page, but with a print button. When you press the print button, you can see a messed up version of the page with the fonts replaced all for arial.

Thanks.

@c0h1b4
Copy link
Author

c0h1b4 commented Mar 6, 2018

Anyone fixed this? I was checking the code but it is a little over my skills to understand what happens.

@PreownedFIN
Copy link

Sounds like a problem with embedded fonts and PDFJS not liking canvases at all.
(I had similar problems when implementing print to texture to vue-pdf.)

Though I didn't really get to the bottom of the problem as the fiddle seems to be broken:
image

@dermansi
Copy link

@PreownedFIN just change the src PDF on the demo page. The PDF isn't available anymore.

@hoon-dialog hoon-dialog linked a pull request May 27, 2019 that will close this issue
@Unniks-here
Copy link

Is there any solution for this issue?

@FossPrime
Copy link
Contributor

FossPrime commented Aug 25, 2020

@Unniks-here print the canvas instead, deoptimize the pdf, or load the fonts the pdf is using into the page see #156

Ultimate solution is probably to extract the fonts and then import them into the dom... maybe

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

Successfully merging a pull request may close this issue.

6 participants