Hello,
We have a PDF file that already has been signed using an unknown program and when we try to add another signature to it it invalidates the first signature. Testing with other libraries it doesnt happen.
Can you help us understand if we are doing something wrong or it’s a problem with the Aspose library?
We are using aspose.pdf 21.12
The code that we are using is as follows,
Using finalStream As New IO.MemoryStream()
Using document As New Aspose.Pdf.Document(New IO.MemoryStream(inputFile))
Using signature As New Aspose.Pdf.Facades.PdfFileSignature(document)
PKCS7.ShowProperties = False
signature.Sign(1, False, Nothing, PKCS7)
'Save output PDF file
signature.Save(finalStream)
result = finalStream.ToArray()
End Using
End Using
End Using
Here is the file,
original.pdf (137.8 KB)