This exception seems to be related to AES algorithm PaddingMode property.
Export should take into account JavaScript and produce PDF similar to the original page.
CryptographicException is thrown when saving with PdfStreamWriter or importing with PdfFormatProvider.
The exception: System.Security.Cryptography.CryptographicException: 'The input data is not a complete block.'
Add a setting that allows enabling printing of protected documents.
12 0 obj ( Brillig ) endobj
2545 0 obj << /Type /Page /Parent 2537 0 R /Contents 8 0 R /Resources 2538 0 R >> 2546 0 obj ....