pdf.proxyTarget String
(default: "_self")
A name or keyword which indicates where to display the document that is returned from the proxy. To display the document in a new window or iframe, set the proxy Content-Disposition
header to inline; filename="<fileName.pdf>"
.
Example - opening the generated document in a new window
<div id="spreadsheet"></div>
<script>
$("#spreadsheet").kendoSpreadsheet({
sheets: [{
rows: [{
cells: [{ value: "A" }, { value: "B" }, { value: "C" }]
}, {
cells: [{ value: "1" }, { value: "2" }, { value: "3" }]
}, {
cells: [{ value: "4" }, { value: "5" }, { value: "6" }]
}]
}],
pdf: {
forceProxy: true,
proxyURL: "/save",
proxyTarget: "_blank"
}
});
var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");
spreadsheet.saveAsPDF();
</script>