paper-css
paper-css copied to clipboard
Why using this library makes printed PDF go out of A4 paper bounds?
I would like to use paper-css to style HTMLs invoices. It all perfectly looked on my monitor, I recalculated all units to mm (1mm == 3.78px). I print my PDFs using html-pdf node package which in turn uses phantomJS...
I don't know what to add more. There is no point of attaching CSS because it is simply as floats and divs with mm units set on them...
I'd go with headless chrome instead of phantom. It's much more modern rendering engine and pretty easy to debug since the output should be the same as with cmd+p in your local browser.