RadFixedDocument doc = new PdfFormatProvider().Import(System.IO.File.OpenRead(localPdfFile));
I am trying to load a Adobe signed PDF document , but is throwing error as "The input data is not a complete block"
System.Security.Cryptography.CryptographicException
HResult=0x80131430
Message=The input data is not a complete block.
Source=System.Core
StackTrace:
at System.Security.Cryptography.CapiSymmetricAlgorithm.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
at System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.Stream.Dispose()
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Encryption.StandardEncrypt.CalculateAesResult(Byte[] cipherTextCombined, Byte[] key)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Encryption.StandardEncrypt.Encrypt(StandardEncryptionContext context)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Encryption.StandardEncrypt.EncryptString(Int32 objectNo, Int32 generationNo, Byte[] data)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Encryption.StandardEncrypt.DecryptString(Int32 objectNo, Int32 generationNo, Byte[] data)