3 Answers, 1 is accepted
The PdfViewer needs to receive a file in order to show it. This can be a static file (like in the demo), or it can be an URL to an action method that will return the PDF. This action, in your case, can access the database and extract the file from it so you can return it to the client and the PdfViewer.
Regards,
Marin Bratanov
Progress Telerik
Hi, could You explain how can I pass with razor a pdf using an action method to the pdfviewer? the only examples I've found all use a file and no information are provided in the documentation
Thanks in advance
The following knowledge base article contains some examples - both on changing the URL dynamically, and on using a controller action to return the pdf: https://docs.telerik.com/kendo-ui/knowledge-base/pdfviewer-load-pdf-dynamically-action-database
Regards,
Marin Bratanov
Progress Telerik
I need the solution for this also, but the link provided by Martin above does not work.
ive managed to setup a controller action to return the jsonresult for the pdf file which works in the dpl viewer , however i need to use the pdfjs implementation tonutilise the print and download functionality.
any suggestions?
Hi,
The broken link in Marin's post is now fixed: https://docs.telerik.com/kendo-ui/knowledge-base/pdfviewer-load-pdf-dynamically-action-database