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
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.
Please login first to submit.