Hi,
I have a really old verison of the PDF toolkit, but I was hoping I can still do this simple task with it.
I want to open a PDF document change it’s permissions and then re-save it.
I was trying something like this but it is not working.
//Instantiating PdfFileSecurity object
Aspose.Pdf.Security fileSecurity = new Aspose.Pdf.Security();
fileSecurity.IsCopyingAllowed = false;
fileSecurity.IsScreenReadersAllowed = true;
fileSecurity.IsContentsModifyingAllowed = false;
fileSecurity.IsAnnotationsModifyingAllowed = false;
fileSecurity.IsPrintingAllowed = true;
System.IO.FileStream s = new System.IO.FileStream(TempPDF, System.IO.FileMode.Open, System.IO.FileAccess.ReadWrite);
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf(s);
pdf.Security = fileSecurity;
//pdf.Save(s);
pdf.Close();