Skip to main content

layout_src

Function layout_src 

Source
pub fn layout_src(page: &PdfPage) -> LayoutSrc<'_>
Expand description

The layout model’s input for a page: the docling-exact scale-1.0 page image when the renderer produced one, else the legacy stretch of the 2× bitmap (browser / METS paths) — see layout::LayoutSrc. Public so the diagnostic examples feed layout::LayoutModel::predict the same input the pipeline does.