Hi Team,
We are trying to use PDF encryption option in Aspose word, and I am aware the following code helps us achieve that logic. But is there a way to prevent editing alone in PDF but allow Add/Insert via this Aspose word.
PdfSaveOptions saveOptions = new PdfSaveOptions();
// Create encryption details and set owner password.
PdfEncryptionDetails encryptionDetails = new PdfEncryptionDetails(string.Empty, "password");
// Start by disallowing all permissions.
encryptionDetails.Permissions = PdfPermissions.DisallowAll;
// Extend permissions to allow editing or modifying annotations.
encryptionDetails.Permissions = PdfPermissions.ModifyAnnotations | PdfPermissions.DocumentAssembly | PdfPermissions.ContentCopy;
saveOptions.EncryptionDetails = encryptionDetails;
Thanks,
Karthikeyan