alvarcarto / url-to-pdf-api

Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.
MIT License
7.03k stars 779 forks source link

render html issue #94

Closed LukaszKiedrowski closed 5 years ago

LukaszKiedrowski commented 5 years ago

https://github.com/alvarcarto/url-to-pdf-api/blob/master/src/core/render-core.js#L92

If you will send html and try to change color of font-size using css then pdf is blank.

I see that the bug in comment has been fixed so page.setContent is working correctly so you could change line above to this one.

await page.setContent(opts.html, opts.goto);
kimmobrunfeldt commented 5 years ago

Fixed now.