Hello;
i use this code to view my pdf file ,how i can prevent print pdf document from (ctrl+p) keyboard
Dim pdfDoc As String = "..\..\..\..\..\..\Data\Multipage.pdf"
Me.pdfDocumentViewer1.LoadFromFile(pdfDoc)
Thank you
Dim pdf As PdfDocument = New PdfDocument
pdf.LoadFromFile("test.pdf")
'Encrypt the PDF document with permission password
'Allow to fill fields, copy content and edit content, other permissions are disabled, including printing.
pdf.Security.Encrypt("permission", (PdfPermissionsFlags.FillFields Or PdfPermissionsFlags.CopyContent Or PdfPermissionsFlags.EditContent))
pdf.SaveToFile("result.pdf", FileFormat.PDF)