From 525a43ae9e106297d9eeb6e58ca3fd0dfa192b12 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 7 Nov 2016 17:21:54 +0100 Subject: [PATCH] Export pdf in portait mode --- highcharts-export-clientside.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/highcharts-export-clientside.js b/highcharts-export-clientside.js index ba71ab6..b43a749 100644 --- a/highcharts-export-clientside.js +++ b/highcharts-export-clientside.js @@ -372,7 +372,7 @@ }; svgToCanvas(context.svg, context.destWidth, context.destHeight, function(canvas) { - var doc = new jsPDF('l', 'mm', [context.destWidth, context.destHeight]);; + var doc = new jsPDF('p', 'mm', [context.destWidth, context.destHeight]);; doc.addImage(canvas, 'JPEG', 0, 0, context.destWidth, context.destHeight); data.datauri = context.browserSupportDownload && doc.output('datauristring');