pub fn parse_pdf_with_password(
bytes: &[u8],
password: &[u8],
) -> PdfResult<ParsedDocument>Expand description
Parses an encrypted PDF with a caller-supplied password. The password
is tried first as the user password, then as the owner password; if
neither authenticates, the function returns
PdfError::InvalidPassword. For unencrypted documents the password
is ignored.