//! Shared test helpers. Each integration test that needs them declares
//! `#[path = "common/mod.rs"] mod common;` at file top.
//!
//! Because each `tests/*.rs` file becomes its own crate, items in this
//! module appear unused from the perspective of crates that don't import
//! them. Suppress `dead_code` at the module level — this is the
//! conventional pattern for `tests/common/` shared helpers in Rust.
/// Count the number of /Type /Page entries in PDF bytes (excluding /Type /Pages).