Unable to Remove Security from Packaged PDF

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

<!–[if gte mso 10]> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";}

<![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.
Hi Greg,

Thanks for your patience and sorry for the delayed response.

We have further looked into your earlier request and would like to have some details regarding the problem. Do you need to remove Extended rights feature enabled on some PDF file so that no error message appears when viewing the concatenated PDF file or you need to set access privileges over PDF document.

Furthermore, please note that the latest release of Aspose.Pdf for .NET 9.2.1 contains many improvements and enhancements as compared to the version which you were using, when the problem was initially reported. So we recommend you to please try using the latest release and in case the problem still persists, please feel free to contact.