Hi,
I’ve attached two files: the TBD.pdf is the starting file. The tbd.pdfcleaned.pdf is the result of running through the code below. When I open the resulting file in Adobe Acrobat 11, I do not see the Degraded Printing or other printing options set.
Hi,
Lost track of this issue. I went back and re-tested with Aspose.PDF 9.8. If I start with ForbidAll as a privilege and then attempt to allow DegradedPrinting, it will not show the change in Acrobat Reader. However if I start with AllowAll and then disable DegradedPrinting, the code works successfully.
Hi,
notice the same problem. For the sake of correction, I have logged this problem
as PDFNEWNET-37846 in our issue tracking system. We will further
look into the details of this problem and will keep you updated on the status
of correction. Please be patient and spare us little time. We are sorry for
this inconvenience.
Just checking to see if there is any status for a fix around this issue.
Hi
Thanks for your patience.
The development team has been busy resolving other priority issues and I am afraid the aforementioned problem is not yet resolved. Nevertheless, I have requested the development team to try accommodating the investigation of this issue in their development schedule and as soon as I have some updates regarding its resolution, I would be more than happy to update you with the status of correction. Please be patient and spare us some time.
We are sorry for this delay and inconvenience.
Hi there,
Thanks for your patience. We have further investigated and found that if allow-printing
hasn’t been specified, printing is restricted to the print as image feature which prints a low-resolution rendition of the page. So you should also enable the allow-print
option as following. It will help you to accomplish the task.
var docPrivilege = DocumentPrivilege.ForbidAll;
docPrivilege.AllowPrint = true;
docPrivilege.AllowDegradedPrinting = true;
var fileSecurity = new Aspose.Pdf.Facades.PdfFileSecurity();
fileSecurity.BindPdf(myDir + "tbd.pdf");
fileSecurity.EncryptFile("test", "test2", docPrivilege, KeySize.x128, Algorithm.AES);
fileSecurity.Save(myDir + "tbd_AllowAll.pdf");
Please feel free to contact us for any further assistance.
Best Regards,
Just tested this code with the steps and I get the same result as before. Adobe Reader indicates I have High Resolution printing enabled when I look at the Properties, Security. I have tested with 10.5.0.0.
Hi there,
Hi,
= false; in earlier shared code snippet.
Yes–changing the code to set the Printing to “true” and DegradedPrinting to “false” works with 10.5.0
Hi there,