Is it possible to block script execution in PDFViewer?

0 Answers 45 Views
PDFViewer
Ilan
Top achievements
Rank 1
Ilan asked on 02 Jan 2023, 08:46 AM

Hello!

Is it possible to block java script execution in PDF documents in  PDFViewer?

Or maybe it is possible to find out if there is a script in the document?

I will be grateful for any answer.

Mihaela
Telerik team
commented on 04 Jan 2023, 02:00 PM

Hi Ilan,

Would you please elaborate further on your scenario? It would be of great help if you could share the PDFViewer configuration at your end and explain how the custom JS logic is related to the PDFViewer.

You can get all script tags registered in the document by using the jQuery selector $('script') or by using JavaScript method:

document.getElementsByTagName('script');

 

    No answers yet. Maybe you can help?

    Tags
    PDFViewer
    Asked by
    Ilan
    Top achievements
    Rank 1
    Share this question
    or