pofider / phantom-html-to-pdf

Highly scalable html to pdf conversion using phantom workers
MIT License
159 stars 33 forks source link

Problem with CSS being applied? #89

Closed jrdn91 closed 6 years ago

jrdn91 commented 6 years ago

It seems when this gets created as a PDF some of the CSS I've set in a style at in the page head isn't being applied.

One thing that's happening is I have some elements rendered on the page and I set their width and height to hard inch values but when the PDF comes through to the page they are rendering much larger than that on their pages.

Is there something I need to know about how CSS is rendered?

pofider commented 6 years ago

This package is just a wrapper around phantomjs. It manages how many phantomjs are being used for printing, but the printing it self is done by phantomjs.

I recommend to search phantomjs repisotory for the solution.