This is a migrated thread and some comments may be shown as answers.

Prevent downloading PDF file

1 Answer 499 Views
PdfViewer
This is a migrated thread and some comments may be shown as answers.
Zanest
Top achievements
Rank 1
Zanest asked on 28 Jul 2020, 01:46 PM

Dears,

I'm using a PdfViewer and I hided the download button, but still visitor can see the path of the file from the page source.

How can I prevent visitors to see the file path, If any way to give the PdfViewer the file stream object instead of the path?

Note:
The file path is coming from database in string format.

Thank you for your help.

 

 

 

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 30 Jul 2020, 08:23 AM

Hi Zanest,

Currently the PdfViewer does not provide an option to hide/encrypt the name of the loaded file from the source code. Nevertheless, you can see a possible way to load the file from a Memory stream to the viewer using our Document Processing library in the following demo:

https://demos.telerik.com/aspnet-ajax/pdfviewer/applicationscenarios/dplintegration/defaultcs.aspx

Regards,
Vessy
Progress Telerik

Tags
PdfViewer
Asked by
Zanest
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or