Hi,
I'm trying to get a diagram to generate a PDF file.
I've successfully persuaded it to output in landscape format using information from http://docs.telerik.com/kendo-ui/api/javascript/drawing/pdfoptionsbut I would also like to modify the output file's name and adjust other aspects of the output the code I'm, using is below:
function PrintDiagram() {
var filename = jsonDiagram.Name.replace(/[^a-z0-9]/gi, '_').toLowerCase();
findControl('input','EmpName').Value
Telerik_Diagram.pdf = {
creator: "Actis CRM",
fileName: filename + '.pdf',
subject: jsonDiagram.Name,
title: jsonDiagram.Name,
paperSize: "A4",
landscape: true
}
Telerik_Diagram.saveAsPDF();
}
hopefully fairly self explanatory.
As I say the result is a diagram pdf that is correctly oriented but the file name is still the default 'export.pdf' and the pdf producer (I assume should map to 'creator) is still Kendo UI PDF Generator v.2016.3.913. There is no title, author or subject either (see attached)
What am I doing wrong here?
Alan