How can I disable download and print buttons from pdfviewer?

0
0

Hello:

I have a PDF repository on SQL Server. I retrieve the information from the pdf file, from the database through a memorystream.
How can I send these parameters “#toolbar=0&navpanes=0” to avoid downloading or printing?
eg.
Dim pdfBytes As New MemoryStream(by)
Dim pdfview As New PdfViewer
pdfview.Dock = DockStyle.Fill
pdfview.ViewerType = PdfViewerType.Auto
pdfview.PdfStream = pdfBytes

Thanks in advance

  • You must to post comments
0
0

That’s only for the embedded adobe viewer. Browsers stopped using it years ago. Chrome uses it’s own viewer. Firefox uses pdfjs, Edge uses its own.

In case, you set the custom url when you set the viewer type to Custom.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.