I'm trying to decrypt a PDF file but I'm getting the error message:
"The Permission password is invalid."
What's strange is that we can load the file with the password but when decrypting this error is triggered:
PdfDocument PDFEncriptado = new PdfDocument(@"FaturaCriptografada.pdf", "15511");
PDFEncriptado.Security.Encrypt(String.Empty, String.Empty, PdfPermissionsFlags.Default, PdfEncryptionKeySize.Key128Bit, "15511");
I'm waiting for the analysis. Thank you for your attention,
Campêlo