4 Answers, 1 is accepted

Could you provide some more details about the use case scenario, so that we are able to reproduce the reported undesired behavior of creating a blank pdf.
I am also sending some links that may be useful for this case:
The following shows the API of the saveAs method of the FileSaver (it uses Base64-encoded Data URI for its data parameter):
https://www.telerik.com/kendo-angular-ui/components/filesaver/api/saveAs/
the PDF Export component:
https://www.telerik.com/kendo-angular-ui/components/pdfexport/
and the export to pdf functionality of the grid:
https://www.telerik.com/kendo-angular-ui/components/grid/export/pdf-export/
I hope this information will be helpful.
Regards,
Svetlin
Progress Telerik

hi Svetlin,
I'm using Angular 1 version with kendo plugin to export as PDF.
The useful likn which u given is about angular 2/4.
The use case is for the perticular account 1st time creation & export pdf report getting blank pages
where as followed by one more time if we try to create the pdf then it is working fine.
below is the sample code to create the PDF of Div section :
kendo.drawing.drawDOM("#content_mergeReport", {
allPages: true,
forcePageBreak: ".page-break",
paperSize: "A4",
scale: 0.6,
landscape: false,
Portrait :true,
repeatHeaders: true,
multiPage: 'true',
margin: {left: "1cm", top: "1.5cm", right: "1cm", bottom: "2.5cm" },
/*template: $("#page-template").html()*/
template: kendo.template($("#page-template").html())(
{
pageNum: "",
totalPages: "",
FIRSTDATE: startDate1,
TYPE: typeofuser,
ENDDATE: endDate1,
USER: context.get('practicedetails').Name,
})
}).then(function (group) {
return kendo.drawing.exportPDF(group, {
});
})
Regards,
Nitin
Here's a dojo example in which a Grid's content is exported with Drawing. The base64 encoded file content is sent to the proxy by the kendo.saveAs method:
kendo.saveAs({
//base64-encoded dataURI:
dataURI: data,
fileName:
"Test.pdf"
,
});
More details on the parameters of this method you can find in its API documentation.
Regards,
Ivan Danchev
Progress Telerik