Skip to main content

project_main_document_xml

Function project_main_document_xml 

Source
pub fn project_main_document_xml<F>(
    xml: &[u8],
    limits: DocxLimits,
    allocate_id: F,
) -> Result<DocumentProjection, ProjectionError>
Expand description

Projects a bounded standalone main document or relationship-selected Flat OPC package.

Package payloads are indexed without scanning their bodies. Only the selected document and its style/numbering dependencies enter the shared projection. Standalone input retains unknown dependency-derived evidence.

ยงErrors

Returns ProjectionError for malformed input, resource limits or allocator failures.