Hello, I am new to PDFSharp, so I might be missing something. I am trying to set the PermitPrint and PermitModifyDocument to false to a PDF document, but not working. When I open the document after setting them to False, the properties shows that they are still set to Yes. What Am i missing? PDFSharp Info: PDFSharp GDI version: 1.3.1684.0
here is my code:
Dim loDocument As PdfDocument = IO.PdfReader.Open(vsDocPath) Dim loSecuritySettings As PdfSharp.Pdf.Security.PdfSecuritySettings = loDocument.SecuritySettings loSecuritySettings.PermitModifyDocument = vsDocSecurity.PermitModifyDocument loSecuritySettings.PermitPrint = vsDocSecurity.PermitPrint loDocument.Save(vsDocPath) loDocument.Close()
Thanks Georges
|