Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

PDFFileSecurity/DocumentPrivilege does not work to set AllowDegradedPrinting

$
0
0
Using Aspose.PDF 9.6.0.0, our code is having issues setting the Degraded Printing property for the PDFFileSecurity. Looking for guidance on the best way to do this. Sample code below:


var docPrivilege = Aspose.Pdf.Facades.DocumentPrivilege.ForbidAll;
docPrivilege.AllowDegradedPrinting = true;

var fileSecurity = new Aspose.Pdf.Facades.PdfFileSecurity();
fileSecurity.BindPdf(@"C:\temp\test.pdf");
              fileSecurity.EncryptFile("test","test",docPrivilege,Aspose.Pdf.Facades.KeySize.x128,Aspose.Pdf.Facades.Algorithm.AES);
fileSecurity.Save(@"C:\temp\tbdSec.pdf");

Viewing all articles
Browse latest Browse all 3131

Trending Articles