How to check for changing the document accessibility exists or not in pdf?

How to check for changing the document accessibility exists or not in pdf?

@kranthireddyr

Thanks for contacting support.

You may please access AllowModifyContents Property of DocumentPrevilige class, in order to determine whether a PDF document allows modifying/changing the content or not. Please check following code snippet in order to achieve your requirement:

// Instantiate PdfFileInfo Class object.
Aspose.Pdf.Facades.PdfFileInfo info = new Aspose.Pdf.Facades.PdfFileInfo();
// Load your encrypted PDF document.
info.BindPdf(dataDir + "EncryptedDocument.pdf");
// Get DocumentPrivilege
Facades.DocumentPrivilege documentPrivilege = info.GetDocumentPrivilege();
// Determine AllowModifyContents
bool modifyingContent = documentPrivilege.AllowModifyContents;

In case of any further assistance, please feel free to contact us.

Hi Asad,

your code helped me but i need some information also .

Aspose.Pdf.Facades.PdfFileInfo info = new Aspose.Pdf.Facades.PdfFileInfo();
// Load your encrypted PDF document.
info.BindPdf(dataDir + “EncryptedDocument.pdf”);
// Get DocumentPrivilege
Facades.DocumentPrivilege documentPrivilege = info.GetDocumentPrivilege();

with this code i am able to get

  • documentPrivilege.AllowAssembly
  • documentPrivilege.AllowCopy
  • documentPrivilege.AllowDegradedPrinting
  • documentPrivilege.AllowFillIn
  • documentPrivilege.AllowModifyAnnotations
  • documentPrivilege.AllowModifyContents
  • documentPrivilege.AllowPrint
  • documentPrivilege.AllowScreenReaders

May i know how can i get Content copying of accessibility, page Extraction,Commenting,singing and creation of template pages properties of document restriction summary.

Please refer the sceenshot. Capture2.JPG (47.4 KB)

@kranthireddyr

Thanks for your feedback.

We already have logged an investigation ticket as PDFNET-43393 in our issue tracking system, for your requirements. As soon as the ticket is resolved, we will definitely inform you within this forum thread. Please be patient and spare us little time.

We are sorry for the inconvenience.