Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Printing getOrgChart

I am using the getOrgChart library from here, and I am trying to print out the entire chart instead of just the visible section. Unfortunately when using the standard libraries print function it will only print out the first section and I can't figure out how to print the entire chart (which is quite wide with around 200 nodes going horizontally). Even if it is across several pages I don't mind.

I have tried a few libraries like svgToPdf, jsPDF and I understand there are server-side alternatives like Phantom but I am unsure on the best way as well as the easiest to get my SVG tags to print fully.

like image 885
Mr Dansk Avatar asked Feb 14 '17 07:02

Mr Dansk


1 Answers

Enables printing.

Default value: false

var orgchart = new getOrgChart($("#id"),{
   enablePrint: true
});
like image 55
Farhad Bagherlo Avatar answered Nov 17 '22 17:11

Farhad Bagherlo