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:
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');