snapshot icon indicating copy to clipboard operation
snapshot copied to clipboard

Generate pdf without page breaks

Open adrianlzt opened this issue 7 years ago • 2 comments

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: captura de pantalla de 2017-01-13 13-47-00

adrianlzt avatar Jan 13 '17 12:01 adrianlzt

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.

adrianlzt avatar Jan 13 '17 14:01 adrianlzt

Can you make a PR?

parvez avatar Jan 18 '17 20:01 parvez