docx-rs 0.4.21

A .docx file writer with Rust/WebAssembly.
Documentation
1
2
3
4
5
---
source: docx-core/tests/reader.rs
expression: "&json"
---
"{\n  \"contentType\": {\n    \"types\": {\n      \"/_rels/.rels\": \"application/vnd.openxmlformats-package.relationships+xml\",\n      \"/docProps/app.xml\": \"application/vnd.openxmlformats-officedocument.extended-properties+xml\",\n      \"/docProps/core.xml\": \"application/vnd.openxmlformats-package.core-properties+xml\",\n      \"/docProps/custom.xml\": \"application/vnd.openxmlformats-officedocument.custom-properties+xml\",\n      \"/word/_rels/document.xml.rels\": \"application/vnd.openxmlformats-package.relationships+xml\",\n      \"/word/comments.xml\": \"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml\",\n      \"/word/commentsExtended.xml\": \"application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml\",\n      \"/word/document.xml\": \"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml\",\n      \"/word/fontTable.xml\": \"application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml\",\n      \"/word/numbering.xml\": \"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml\",\n      \"/word/settings.xml\": \"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml\",\n      \"/word/styles.xml\": \"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml\"\n    },\n    \"web_extension_count\": 1,\n    \"custom_xml_count\": 1,\n    \"header_count\": 0,\n    \"footer_count\": 0\n  },\n  \"rels\": {\n    \"rels\": [\n      [\n        \"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties\",\n        \"rId1\",\n        \"docProps/core.xml\"\n      ],\n      [\n        \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties\",\n        \"rId2\",\n        \"docProps/app.xml\"\n      ],\n      [\n        \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\",\n        \"rId3\",\n        \"word/document.xml\"\n      ],\n      [\n        \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties\",\n        \"rId4\",\n        \"docProps/custom.xml\"\n      ]\n    ]\n  },\n  \"documentRels\": {\n    \"hasComments\": false,\n    \"hasNumberings\": false,\n    \"hasFootnotes\": false,\n    \"images\": [],\n    \"hyperlinks\": [],\n    \"customXmlCount\": 0,\n    \"headerCount\": 0,\n    \"footerCount\": 0\n  },\n  \"docProps\": {\n    \"app\": {},\n    \"core\": {\n      \"config\": {\n        \"created\": null,\n        \"creator\": null,\n        \"description\": null,\n        \"language\": null,\n        \"lastModifiedBy\": null,\n        \"modified\": null,\n        \"revision\": null,\n        \"subject\": null,\n        \"title\": null\n      }\n    },\n    \"custom\": {\n      \"properties\": {}\n    }\n  },\n  \"styles\": {\n    \"docDefaults\": {\n      \"runPropertyDefault\": {\n        \"runProperty\": {}\n      },\n      \"paragraphPropertyDefault\": {\n        \"paragraphProperty\": {\n          \"runProperty\": {},\n          \"tabs\": []\n        }\n      }\n    },\n    \"styles\": [\n      {\n        \"styleId\": \"Normal\",\n        \"name\": \"Normal\",\n        \"styleType\": \"paragraph\",\n        \"runProperty\": {},\n        \"paragraphProperty\": {\n          \"runProperty\": {},\n          \"tabs\": []\n        },\n        \"tableProperty\": {\n          \"width\": {\n            \"width\": 0,\n            \"widthType\": \"auto\"\n          },\n          \"justification\": \"left\",\n          \"borders\": {\n            \"top\": {\n              \"borderType\": \"single\",\n              \"size\": 2,\n              \"color\": \"000000\",\n              \"position\": \"top\",\n              \"space\": 0\n            },\n            \"left\": {\n              \"borderType\": \"single\",\n              \"size\": 2,\n              \"color\": \"000000\",\n              \"position\": \"left\",\n              \"space\": 0\n            },\n            \"bottom\": {\n              \"borderType\": \"single\",\n              \"size\": 2,\n              \"color\": \"000000\",\n              \"position\": \"bottom\",\n              \"space\": 0\n            },\n            \"right\": {\n              \"borderType\": \"single\",\n              \"size\": 2,\n              \"color\": \"000000\",\n              \"position\": \"right\",\n              \"space\": 0\n            },\n            \"insideH\": {\n              \"borderType\": \"single\",\n              \"size\": 2,\n              \"color\": \"000000\",\n              \"position\": \"insideH\",\n              \"space\": 0\n            },\n            \"insideV\": {\n              \"borderType\": \"single\",\n              \"size\": 2,\n              \"color\": \"000000\",\n              \"position\": \"insideV\",\n              \"space\": 0\n            }\n          }\n        },\n        \"tableCellProperty\": {\n          \"width\": null,\n          \"borders\": null,\n          \"gridSpan\": null,\n          \"verticalMerge\": null,\n          \"verticalAlign\": null,\n          \"textDirection\": null,\n          \"shading\": null\n        },\n        \"basedOn\": null,\n        \"next\": null\n      }\n    ]\n  },\n  \"document\": {\n    \"children\": [\n      {\n        \"type\": \"paragraph\",\n        \"data\": {\n          \"id\": \"00000001\",\n          \"children\": [\n            {\n              \"type\": \"run\",\n              \"data\": {\n                \"runProperty\": {},\n                \"children\": [\n                  {\n                    \"type\": \"text\",\n                    \"data\": {\n                      \"preserveSpace\": true,\n                      \"text\": \"Hello\"\n                    }\n                  }\n                ]\n              }\n            },\n            {\n              \"type\": \"run\",\n              \"data\": {\n                \"runProperty\": {\n                  \"style\": \"FootnoteReference\"\n                },\n                \"children\": []\n              }\n            }\n          ],\n          \"property\": {\n            \"runProperty\": {},\n            \"tabs\": []\n          },\n          \"hasNumbering\": false\n        }\n      }\n    ],\n    \"sectionProperty\": {\n      \"pageSize\": {\n        \"w\": 11906,\n        \"h\": 16838,\n        \"orient\": null\n      },\n      \"pageMargin\": {\n        \"top\": 1985,\n        \"left\": 1701,\n        \"bottom\": 1701,\n        \"right\": 1701,\n        \"header\": 851,\n        \"footer\": 992,\n        \"gutter\": 0\n      },\n      \"columns\": 1,\n      \"space\": 425,\n      \"titlePg\": false,\n      \"textDirection\": \"lrTb\"\n    },\n    \"hasNumbering\": false\n  },\n  \"comments\": {\n    \"comments\": []\n  },\n  \"numberings\": {\n    \"abstractNums\": [],\n    \"numberings\": []\n  },\n  \"settings\": {\n    \"defaultTabStop\": 840,\n    \"zoom\": 100,\n    \"docId\": null,\n    \"docVars\": [],\n    \"evenAndOddHeaders\": false,\n    \"adjustLineHeightInTable\": false\n  },\n  \"fontTable\": {},\n  \"media\": [],\n  \"commentsExtended\": {\n    \"children\": []\n  },\n  \"webSettings\": {\n    \"divs\": []\n  },\n  \"taskpanes\": null,\n  \"taskpanesRels\": {\n    \"rels\": []\n  },\n  \"webExtensions\": [],\n  \"customItems\": [],\n  \"customItemProps\": [],\n  \"customItemRels\": [],\n  \"themes\": [],\n  \"images\": [],\n  \"hyperlinks\": [],\n  \"footnotes\": {\n    \"footnotes\": []\n  }\n}"