Open adrianlzt opened 7 years ago
Adding this lines
page.viewportSize = { width: 1500, height: pdfViewportHeight }
page.paperSize = {};
And removing the page.evaluate(function() {
Generate a decent one page pdf for the selected dashboard.
The left yaxis label is not rotated, don't know why.
I will try to make an option for the page format that generates one page pdf.
Can you make a PR?
With the current implementation PDF could break graphs betweek two pages. I'm looking how to generate a pdf without page breaks.
I have set to empty the paper size property![captura de pantalla de 2017-01-13 13-47-00](https://cloud.githubusercontent.com/assets/3237784/21930541/d3c2a5ca-d996-11e6-80d1-3a20815270fc.png)
page.paperSize = {};
, but the render make weird things: