Download a PDF document in PDF Viewer component

2 Dec 20221 minute to read

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">

Alt text

You can invoke download action using following code snippet.,

    window.onload = function () {
        var pdfViewer = document.getElementById('pdfviewer').ej2_instances[0];;

See also