pub fn page_count( bytes: &[u8], password: Option<&str>, ) -> Result<usize, PdfError>
Number of pages in a PDF, without converting anything — what the CLI batch mode prints in its per-document start line.