This is a migrated thread and some comments may be shown as answers.

Printing map

1 Answer 15 Views
Map
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 27 Sep 2016, 08:12 AM

Hello,

is there any way to resize the map to a fixed size (e.g. the size of an A4-paper), before printing.
Maybe with help of "@media print" CSS, or by using javascript.

All the solutions I have tried ends up with cropping just the top left corner of the map.

 

Thanks!

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 27 Sep 2016, 02:33 PM
Hi Simon,

Have you tried to scale the page as shown in this help article: Scaling, i.e.

drawing.drawDOM("#content", {
  paperSize: "A4",
  margin: "2cm",
  scale: 0.8
}).then(function(group){
  drawing.pdf.saveAs(group, "filename.pdf");
});



Regards,
Rumen
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Map
Asked by
Simon
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or