From 75928e9b636aabba409b2fd9f71f15b4e7cee54c Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Tue, 8 Apr 2014 11:27:05 +0000 Subject: [PATCH] Revert to using point regardless of base unit (with comment) git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2798 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 8d5ff181..cc2f3d68 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -1111,7 +1111,7 @@ TODOS if (type === 'PDF') { var res = svgCanvas.getResolution(); var orientation = res.w > res.h ? 'landscape' : 'portrait'; - var units = curConfig.baseUnit; + var units = 'pt'; // curConfig.baseUnit; // We could use baseUnit, but that is presumably not intended for export purposes var doc = new jsPDF(orientation, units, [res.w, res.h]); // Todo: Give options to use predefined jsPDF formats like "a4", etc. from pull-down (with option to keep customizable) var docTitle = svgCanvas.getDocumentTitle(); doc.setProperties({