Disable caching, downloading printing etc?

1 Answer 325 Views
PDFViewer
Tommy
Top achievements
Rank 1
Iron
Iron
Iron
Tommy asked on 01 Aug 2021, 11:42 PM
We need to let users view sensitive documents within our application so would like to make sure they cannot be downloaded to the local machine, printed etc. Does the Telerik PDF Viewer cater for this?

1 Answer, 1 is accepted

Sort by
0
Aleksandar
Telerik team
answered on 04 Aug 2021, 09:02 AM

Hi Tommy,

The general idea of the component is simply to provide previewing functionality of the PDF. The PDF file has to be sent to the client browser to be previewed. One way to prevent downloading and printing from the PDFViewer would be to set the .ToolBar() configuration to false to not display a Toolbar, or configure it to display only the required controls. Other way would be to hide controls using CSS. Keep in mind that unfortunately there is no way to restrict the access to the file. If there is no file on the client, the widget will have nothing to show. 

you may check these StackOverflow threads for details on caching:

https://stackoverflow.com/a/8155121

https://stackoverflow.com/questions/49547/how-do-we-control-web-page-caching-across-all-browsers

I hope this helps.

Regards,
Aleksandar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

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