Thanks for your inquiry. I would suggest you please read the following article that outlines ‘how to send a document to client’s browser’:
class contains details for encrypting and access permissions for a PDF document. The PdfEncryptionDetails.Permissions
property specifies the operations that are allowed to a user on an encrypted PDF document. The default value is DisallowAll
. Please read the Pdf Permissions from here:
Following code example demonstrates how to set permissions on a PDF document generated by Aspose.Words.
Document doc = new
Document(MyDir + “Rendering.doc”);<o:p></o:p>
PdfSaveOptions saveOptions = new PdfSaveOptions();
// Create encryption details and set
PdfEncryptionDetails encryptionDetails = new PdfEncryptionDetails(string.Empty, "password",
Start by disallowing all permissions.
Extend permissions to allow editing or modifying annotations.
= PdfPermissions.ModifyAnnotations | PdfPermissions.DocumentAssembly;
// Render the document to PDF format
with the specified permissions.
doc.Save(MyDir + "Rendering.SpecifyPermissions
Hope this helps you. Please let me know if I can be of any further assistance.