i want to convert my result HTML page to PDF in phone gap app and then want to share it with phone's native share window.anybody who already did this or have any idea, it would be great help as i stuck here from couple of weeks.
kendo.drawing.drawDOM($(".pdf-page"))
.then(function(group) {
// Render the result as a PDF file
return kendo.drawing.exportPDF(group, {
paperSize: "auto",
margin: { left: "1cm", top: "1cm", right: "1cm", bottom: "1cm" }
});
})
.done(function(data) {
// Save the PDF file
kendo.saveAs({
dataURI: data,
fileName: "manual.pdf",
// proxyURL: "//demos.telerik.com/kendo-ui/service/export",
callback:alert("done 1")
});
});
its is working fine on PC but not working in android mobile app on which currently i am testing. if this works in mobile then can i use
window.plugins.socialsharing.share('Here is your PDF file', 'Your PDF', 'www/files/manual.pdf')
to share that pdf file