Exception at Aspose.Pdf.Facades.PdfFileEditor.Concatenate

Hi,

We use Aspose.PDF, version v2.0.50727. We use Apose’s PdfFileEditor to concatentate PDFs. Recently we have had an issue with two documents. The PdfFileEditor throws the following exception, although the document seems to be a valid pdf and can be viewed using Adobe Acrobat. The document is not encrypted. It is a document that was e-signed through Adobe Acrobat Sign.

EXCEPTION:
.r: Can’t initialize IPdfStreamAccessor —> System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.
at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security.Cryptography.CryptoStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at ..b(Byte[] , Byte[] , Byte[] , Boolean )
at .. (Byte[] , Byte[] , Boolean )
at ..b(Byte[] , )
at ..(Stream , )
at ...( , & )
— End of inner exception stack trace —
at Aspose.Pdf.Facades.PdfFileEditor. (Exception )
at Aspose.Pdf.Facades.PdfFileEditor.Concatenate(String[] inputFiles, String outputFile)

Thanks,
Chana

@cgeisler

You are using quite an old version of the API and a lot of components in older versions have become obsolete and out of support now. Could you please try using 22.6 version of the API which is the latest one (as always recommended) and in case you still face any issues, please share your sample PDF files with us so that we can test the scenario in our environment and address it accordingly.