i am using html2canvas plugin for this.
i am currently using this code.
 html2canvas($("#chartDiv"), {                              
  onrendered: function (canvas) {
   var win = window.open();
   win.document.write("<br><img src='" + canvas.toDataURL() + "'/>");
   win.print(); 
  }
});
when i convert the div to canvas, only the visible part of the window is turned into canvas.
i need to find a solution where i can print the div into many pages if the div is over the size the window. ?
thank in advance

Looks like the only option you have is to modify the page to look the way you want the image to look before rendering.
I was facing the same problem when used html2canvas, and this is one of the reasons, why I write the methods that draw what I want to the canvas myself now.
Maybe have a look at this
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With