When I use the Editor's proxy feature and 'force proxy' to true i cannot seem to prevent the response from being opened into a new tab or window. I would like this to simply save off the PDF and NOT open it in any way. I presumed that this would be possible by using the proxyTarget and referencing an invisible I-Frame but I have not been able to successfully pull this off. Any thoughts?
<script>
$(
"#TestEditor"
).kendoEditor({
tools: [],
pdf: {
allPages:
true
,
proxyURL:
'dynamic'
,
paperSize:
"Letter"
,
margin: { top:
"2cm"
, left:
"1cm"
, right:
"1cm"
, bottom:
"1cm"
},
fileName:
"Test.pdf"
,
forceProxy:
true
,
proxyTarget:
"_blank"
}
});
function
MakeMeAPdf() {
var
$editor = $(
"#TestEditor"
).getKendoEditor();
$editor.value(
"<div>Some HTML stored for the editor</div>"
);
$editor.options.pdf.proxyURL =
'http://The.Url.To.com/my_proxy'
;
$editor.saveAsPDF();
}
</script>