vue-pdf
vue-pdf copied to clipboard
Fix fonts issue in printing
The PDFJS library adds the fonts in the main document.fonts variable. So we need to passed those fonts to the iframe.
We must also support browsers that does not support fonts api (see font_loader in PDFJS)
@FranckFreiburger I push a new fix using a div container instead of the iframe. Mostly because I have an issue with firefox with the Font API in the iframe.
+1 on this PR. Tested on a local build of a project I'm working on, and the font issues we were seeing with printing are indeed fixed with this. @FranckFreiburger any thoughts on getting this in with a patch version bump?
Finally, it's working.
+1 for this PR. Tested locally and it works like a charm.
why is this not merged yet? What's the best way for me to install these changes @arioth ? The vue-pdf package on my app is installed through NPM, should i remove it and manually include the source files?
It solved my print problem. Why is this not merged yet?
Thanks, it helped me too!