Security Method drop-down in acrobat is changed and disabled when pdf signature is applied using Aspose

Applying signature on ‘Edit password’ protected document is changing the security method to “No Security” and Security Method drop down will be disabled.

Please see attached image file “Before.png” and “After.png”.

Using AsposePDF v18.10.0.0 Library

Code Snip set:

Aspose.Pdf.License license = new Aspose.Pdf.License();
license.SetLicense(“Aspose.Pdf.lic”);
FileStream sigFile = new FileStream(pbxFile, FileMode.Open);
PdfFileSignature pdfSign = new PdfFileSignature();
pdfSign.BindPdf(pdfFile);
PKCS7 signature = new PKCS7(sigFile, Password);
Aspose.Pdf.Rectangle AnnotRect = new Aspose.Pdf.Rectangle(80, 540, 270, 560);
System.Drawing.Rectangle rect = AnnotRect.ToRect();
pdfSign.Sign(page, reason, “Contact”, location, true, rect, signature);
pdfSign.Save();

Before.png (18.8 KB)
After.png (18.5 KB)

Please let me know…

@punithkumar

Thank you for contacting support.

Would you please share source and generated PDF files so that we may try to reproduce and investigate it in our environment. Before sharing requested data, please ensure using Aspose.PDF for .NET 19.1.

We checked and ensure that the issue is replicated using Aspose.PDF for .NET 19.1
The source document and pfx file is attached below test.zip.

test.zip (1.9 MB)
Note: Password of attached pfx file is “123456”

@punithkumar

We have worked with the data shared by you but Security method does not change for generated signed file. We have attached it for your kind reference Signed_19.1.pdf.

Would you please share a narrowed down sample application which reproduces the issue in your environment. We will then investigate further to help you out.