Hi,
We have a requirement to check certain permissions on existing certified PDF documents.
The below code will always return true, irrespective of the existing document on the files.
How can I get the existing permission flags?
Code: C#
string ftoo = @"d:\path to open\file.pdf";
PdfDocument document = new PdfDocument(ftoo);
Console.WriteLine(document.Security.Permissions.HasFlag(PdfDocumentPermissions.Commenting));
Console.WriteLine(document.Security.Permissions.HasFlag(PdfDocumentPermissions.Printing));
Many thanks,
James.