Hello,
Thanks for your post.
Spire.PDF supports the decryption of PDF file with 'Acrobat X 256-Bit AES' encryption. I suggest you first upgrade to the latest version(
Spire.PDF Pack(Hot Fix) Version:4.5.3). If the issue still exists, please send the document as well as the password to us(
support@e-iceblue.com) to help us look into it.
In addition, below is my testing code.
- Code: Select all
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile("input.pdf", "my password");
pdf.Security.Encrypt(string.Empty, string.Empty, PdfPermissionsFlags.Default, PdfEncryptionKeySize.Key256Bit, "my password");
pdf.SaveToFile("Decrypt.pdf", FileFormat.PDF);
Sincerely,
Jane
E-iceblue support team