-
Notifications
You must be signed in to change notification settings - Fork 649
-
Notifications
You must be signed in to change notification settings - Fork 649
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
Doesn't work with PhantomJS render PDF #348
Comments
fonts have to be embed into PDF as far as i know (if PDF is vectorized) this is not a webfontloader issue, |
I'm not sure I follow you about the vectorized PDF. The text is selectable and scaled nicely. What is the option to embed the font into the PDF? That would be fine with me, but I didn't see any option from PhantomJS to do that. PNG would not work for the requirements, as it is a text based HTML document I'm converting to PDF. |
Accidentally closed :-) |
was this solved? |
phantomjs is obsolete. Use Puppeteer or headless chrome. |
Thanks but having same issue with Puppeteer. |
did you manage to solve this issue? |
upids=US0401330802165
tohttp://dev.mymonsoon.com/api/print/pdfs
withContent-type:application/x-www-form-urlencoded
Webfontloader does not seem to work with PhantomJS 2.1.1
When I load my page in the browser, it loads 2 fonts, Roboto (from google web fonts) and Roboto-Regular (from locally).
http://monsoonreporting-dev.azurewebsites.net/taxreports/taxsummaryreport?upid=US0401330209103
You will see at the top right of the page in red text:
However, when I run my node script to fetch the page and generate it into a PDF, it does not hit Font Active. It only shows this:
And the PDF is rendered with fallback font, not Roboto. CSS is set to use Roboto. The same occurs when CSS is set to use Roboto-Regular.
What is causing this to fail loading when using PhantomJS?
Here is my NodeJS code which generates the PDF
The text was updated successfully, but these errors were encountered: