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