Skip to main content

parse_docx_package

Function parse_docx_package 

Source
pub fn parse_docx_package(bytes: &[u8]) -> FormattingDocument
Expand description

Parses the word/document.xml part of a stored-profile .docx package back into the language-free concept layer.

Returns an empty document when the package has no extractable word/document.xml (for example a DEFLATE-compressed external file), so out-of-profile packages degrade gracefully rather than panicking.