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
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.