PDF encryption in Aspose word to prevent editing but allow adding/insert

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

@Karthik_Test_account Specifying permissions in PDF document is limited to PdfPermissions. The items in the enumeration reflects the permissions that can be specified for PDF document.