pub fn parse_pdf_with_certificate(
bytes: &[u8],
cert_der: &[u8],
private_key_der: &[u8],
) -> PdfResult<ParsedDocument>Expand description
Parses an Adobe.PubSec-encrypted PDF using a recipient X.509
certificate (DER) and its matching PKCS#8 private key (DER). Returns
PdfError::InvalidPassword when no recipient blob in the PDF
unwraps with the supplied private key. For password-encrypted or
unencrypted documents this returns
PdfError::Unsupported — use parse_pdf_with_password /
parse_pdf respectively.