PDF Viewer - Email

1 Answer 124 Views
PDFViewer
cmarsh
Top achievements
Rank 1
Iron
cmarsh asked on 08 Mar 2023, 08:37 PM

Is there a way to enable an email button on the Viewer control? A client of ours was asking.

Thank you!

1 Answer, 1 is accepted

Sort by
0
Yanislav
Telerik team
answered on 13 Mar 2023, 02:02 PM

Hello Chris,

If I understand you correctly you need to implement a button that sends emails with the PDF document attached. Is that correct?

By design, the PDFViewer is a component whose purpose is to display a PDF document. Sending emails is a completely different functionality and it is up to the developer how to handle such a scenario.

What I can recommend is to create a custom command that sends the email. The PdfViewerToolBarCustomTool configuration allows you to define a custom button. You can hook up for the click event of this button and execute a logic that sends the email. 

Although such implementation would fall beyond the support scope of the Telerik UI products, I've made research about how to implement an email-sender in a Blazor app, please review the following resources:

I hope this information helps.


Regards,
Yanislav
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
PDFViewer
Asked by
cmarsh
Top achievements
Rank 1
Iron
Answers by
Yanislav
Telerik team
Share this question
or