format-specific-extraction
Installation
SKILL.md
Format-Specific Extraction Workflows
Office XML (DOCX/PPTX/ODT)
ZIP archive → SecurityBudget → XML parsing → Text + tables + metadata
let budget = SecurityBudget::from_config(config);(extractors/security.rs), plusconfig.security_limits…max_files_in_archiveas the member cap. The Office path does not useZipBombValidator— that is the archive/iWork/HWPX path.- Open with
zip::ZipArchive::new(cursor)and read the parts (word/document.xml,ppt/slides/*.xml,content.xml). - Parse with
quick-xml::Reader(streaming), threading&mut budgetthrough the recursive walkers so a hostile document exhausts a budget instead of memory. - Metadata via
crate::extraction::office_metadata— see the helper table below. There is noextract_metadata(). - See
extractors/docx.rs,extractors/pptx.rs,extractors/odt.rs.