The PDF Viewer supports downloading the loaded PDF file. You can enable/disable the download using the following code snippet.
<div style="width:100%;height:600px">
<ejs-pdfviewer id="pdfviewer"
style="height:600px"
serviceUrl="/api/PdfViewer"
documentPath=@ViewBag.DocumentPath
enableDownload="true">
</ejs-pdfviewer>
</div>
You can invoke download action using following code snippet.,
<script>
window.onload = function () {
var pdfViewer = document.getElementById('pdfviewer').ej2_instances[0];
pdfViewer.download();
}
</script>