pub struct PageStats {
pub pages: Vec<PageSignature>,
pub regions: Vec<RegionSignature>,
pub body_start_page: u32,
pub body_end_page: u32,
}Expand description
Per-page + per-region descriptive primitives for the document.
pages carries one entry per page in observation order (matches
PageStatsBuilder page slots, which is also reading order across the
document). regions carries one entry per leaf in each page’s Region
tree, page-major then depth-first within the page (matches reading
order). Pages without a RegionStats entry contribute a PageSignature
but no RegionSignatures.
Fields§
§pages: Vec<PageSignature>One entry per page in the analysis window.
regions: Vec<RegionSignature>Per-region signatures across all analyzed pages. Each region carries
its page_number and region_label so consumers can group by page
and resolve back to the matching leaf in RegionStats.per_page[…].root.
body_start_page: u32Inclusive 1-indexed body extent: pages [body_start_page, body_end_page] are classified as Body. 0 in either field means
“no body detected” (e.g., empty document, classifier didn’t run, or
every page failed the body test). Populated by the page-roles
classifier (analytics::page_roles) at the tail of
AnalysisBuilder::finalize.
body_end_page: u32