In Development
Last Updated: 28 Jan 2026 14:54 by ADMIN
Jeff
Created on: 27 Jan 2026 14:05
Category: PdfProcessing
Type: Bug Report
2
PdfProcessing: CryptographicException is thrown when importing AES encrypted document with DocumentInfo
CryptographicException is thrown when importing AES encrypted document with DocumentInfo.
2 comments
ADMIN
Martin
Posted on: 28 Jan 2026 08:20

Hi Jeff,

Thank you for the additional feedback. We already investigated the issue and it seems the real problem is that when creating an encrypted document using AES encryption the encrypted data randomly contains special characters that are not correctly handled during the import process and this is breaking the encrypted data because of escaping this characters (e.g. in "/Title (§ÙQÕY\(}¿X4Zµ\(ç ÷È>G¼t5–Ï0)" the characters are "\("). 

Please make sure you are following this public item so we can notify you when its status changes.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Jeff
Posted on: 27 Jan 2026 18:04
The exact error is as follows: System.Security.Cryptography.CryptographicException: 'Padding is invalid and cannot be removed.'  This issues happens randomly when calling PdfFormatProvider's import method on a PDF encrypted with AES256.