snapshot
snapshot copied to clipboard
Generate pdf without page breaks
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 page.paperSize = {};
, but the render make weird things:
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?