changeset 2226:e21bfc76816d pdf-export

PDF generation: fixed map size for 80dpi In 80dpi mode the map was to small for the pdf, resulting in white space. Setting width and height of the map image now explicitly to the PDF width and height.
author Markus Kottlaender <markus@intevation.de>
date Tue, 12 Feb 2019 14:00:01 +0100
parents bc1780dd7cd1
children 9b545e470b94
files client/src/components/Pdftool.vue
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/Pdftool.vue	Tue Feb 12 13:33:58 2019 +0100
+++ b/client/src/components/Pdftool.vue	Tue Feb 12 14:00:01 2019 +0100
@@ -227,7 +227,7 @@
         console.log("scaleNominator = ", scaleNominator);
 
         var data = canvas.toDataURL("image/jpeg");
-        this.pdf.doc.addImage(data, "JPEG", 0, 0);
+        this.pdf.doc.addImage(data, "JPEG", 0, 0, this.pdf.width, this.pdf.height);
 
         if (template) {
           let defaultFontSize = 10,