11

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.

4

1 回答 1

5

启用打印。

默认值:假

var orgchart = new getOrgChart($("#id"),{
   enablePrint: true
});
于 2017-12-31T11:42:34.700 回答