We are running into an issue where we are unable to remove securities with Adobe Pro when packaging them together.
Both the files have enabled features for Adobe reader on them.
When you package a PDF with just one PDF in it, securities are able to be removed.
When multiple PDFs are packaged if anyone of them has reader rights enabled, securities can not be removed.
Attached are two example PDFs.
Hi Greg,
Are you having the issue with one of the Aspose components – Aspose.Pdf or Aspose.Pdf.Kit? Which platform are you working on – .NET or Java? Are the attached PDF files, input PDF files? Could you please share the code snippet which you’re using at your end as well? We’ll investigate this issue at our end and guide you accordingly.
We’re sorry for the inconvenience.
Regards
<![endif]–>
Version
4.2 .net on pdf.kit
string[] InputFiles = new string[max];
Stream PdfFile;
//Instantiating PdfFileSecurity object
PdfFileSecurity fileSecurity = new PdfFileSecurity(OutputFile, EncryptedOutputFile);
//Calling EncryptFile method to encrypt the PDF document
//Way2: Based on a predefined privilege and change some specifical permissions.
DocumentPrivilege privilege = DocumentPrivilege.AllowAll;
privilege.AllowCopy = true;
privilege.AllowPrint = true;
privilege.AllowFillIn = true;
privilege.AllowScreenReaders = true;
privilege.AllowModifyContents = false;
privilege.AllowModifyAnnotations = true;
//privilege.ChangeAllowLevel = 3;
//privilege.CopyAllowLevel = 1;
// privilege.PrintAllowLevel = 2;
bool encrypted = fileSecurity.EncryptFile("", "Password1!", privilege, false);
Hi Greg,
As you might be aware that we’re only able to fix the issues in our latest versions i.e. building upon the latest code base. I would also like to share that we’re going to discontinue Aspose.Pdf.Kit from October 2011. So, we’ll be able to fix this issue in our merged Aspose.Pdf version. I have logged this issue as PDFNEWNET-29453 in our issue tracking system. You’ll be notified via this forum thread as soon as it is resolved.
We’re sorry for the inconvenience.
Regards,
Greg W:We are running into an issue where we are unable to remove securities with Adobe Pro when packaging them together.
Both the files have enabled features for Adobe reader on them.
When you package a PDF with just one PDF in it, securities are able to be removed.
When multiple PDFs are packaged if anyone of them has reader rights enabled, securities can not be removed.