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

Specify the paper size

2 Answers 118 Views
PDF Export
This is a migrated thread and some comments may be shown as answers.
Murilo
Top achievements
Rank 1
Veteran
Murilo asked on 17 Sep 2020, 03:21 PM

Hi, 

How can i specify the paper size in the kendo-pdf-export tag ?

Example:

<kendo-pdf-export #pdf paperSize='["210mm", "297mm"]'></kendo-pdf-export>

 

I try to do this and pdf.saveAs() return the error "Unknown paper size" (screenshot).

 

Regards,
Murilo Alves.

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 18 Sep 2020, 11:51 AM

Hi Murilo,

Thank you for the details provided.

Indeed every component option without square brackets accepts it value as a string:

https://angular.io/guide/binding-syntax#binding-syntax-an-overview

<kendo-pdf-export #pdf [paperSize]="'['210mm', '297mm']"></kendo-pdf-export>

Here is an example:

https://stackblitz.com/edit/angular-ujubyy?file=app/app.component.ts

I hope this helps.

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Murilo
Top achievements
Rank 1
Veteran
answered on 18 Sep 2020, 02:12 PM
Hi Martin,

Thank you!
Tags
PDF Export
Asked by
Murilo
Top achievements
Rank 1
Veteran
Answers by
Martin
Telerik team
Murilo
Top achievements
Rank 1
Veteran
Share this question
or