PDFsharp & MigraDoc Foundation http://forum.pdfsharp.de/ |
|
PermitPrint and PermitModifyDocument not working http://forum.pdfsharp.de/viewtopic.php?f=2&t=901 |
Page 1 of 1 |
Author: | gfahd [ Thu Oct 08, 2009 3:45 pm ] |
Post subject: | PermitPrint and PermitModifyDocument not working |
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 |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |