Hello I am trying to figure out how to make my pdf document readable/printable without being promped for the password I currently have the following code:
FileStream newFileStream = new FileStream(path, FileMode.Open, FileAccess.ReadWrite);
outputStream.WriteTo(newFileStream);
Pdf doc = new Pdf(newFileStream);
doc.Security = new Security();
doc.Security.UserPassword = GeneratePassword();
doc.Security.IsContentsModifyingAllowed = false;
doc.Security.IsFormFillingAllowed = false;
doc.Security.IsPrintingAllowed = true;
doc.Security.IsScreenReadersAllowed = true;
But when the file is opened it is still asking for a password and will not let me view the file without it??
Any help would be appreciated.
Thanks,
Statman88