Closed evgenyigumnov closed 4 months ago
pub trait TransformerTrait { fn parse(document: &Bytes, images: &HashMap<String, Bytes>) -> anyhow::Result<Document>; fn generate(document: &Document) -> anyhow::Result<(Bytes, HashMap<String, Bytes>)>; }
recommended crates:
zip = "0.6" quick_xml = "0.31.0"
Docx format is a zip file with this file structure
all content concentrated in document.xml file
exmaple docx file: shiva\lib\test\data\document.docx
recommended crates:
Docx format is a zip file with this file structure
all content concentrated in document.xml file
exmaple docx file: shiva\lib\test\data\document.docx