|
<button onclick="download();">Download</button>
<script>
function download(){
var pdfviewer = document.getElementById('PdfViewer').ej2_instances[0];
pdfviewer.download();
}
</script>
|
|
Query |
Details | |
|
thanks but I would need to know how to do it with ej1 no ej2
|
We can download the PDF documents from the code behind using EJ1 PDF Viewer. Refer to the following code
We have created the sample for the same and shared in the below link,
| |
|
ej2 i can't install it gives me the following error
Error Unable to add reference to "pdfium".
Verify that the file is accessible and that the COM component or assembly is valid. |
We have embedded the Pdfium rendering engine in our PDF Viewer for robust rendering, so pdfium dll will be generated on runtime within your project location and there is no need to include the pdfium dll in the project references.
Refer to the below KB link to create pdfviewer web service project in ASP.NET Core
|