https://github.com/netomi/docx-fixer
Simple tool to fix corrupted docx files that suffer from mismatched xml tags
https://github.com/netomi/docx-fixer
docx docx-fixer word xml
Last synced: 4 months ago
JSON representation
Simple tool to fix corrupted docx files that suffer from mismatched xml tags
- Host: GitHub
- URL: https://github.com/netomi/docx-fixer
- Owner: netomi
- License: apache-2.0
- Created: 2022-07-13T15:09:45.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-17T19:46:14.000Z (over 1 year ago)
- Last Synced: 2025-01-28T23:24:52.672Z (6 months ago)
- Topics: docx, docx-fixer, word, xml
- Language: Kotlin
- Homepage:
- Size: 68.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
**docx-fixer** is a small tool to fix problems with corrupted `docx` documents. Nowadays, the content of a docx file is mainly stored in xml format,
which in some cases might be ill-formed, leading to a situation where it is not possible anymore to open it with word processors or other xml related tools.A typical error message where this tool can help is (from Libreoffice):
```
SAXException: [word/document.xml line 2]: Opening and ending tag mismatch: Fallback line 0 and p
```The tool might be able to help fix the problem by making sure that the embedded xml content is well-formed again, allowing to open the file correctly again.
# Usage
```bash
Usage: docx-fixer -o= inputfile
fixes docx files that have an xml tag mismatch upon loading.Parameters:
inputfile input file to process (*.docx)Options:
-o= output file
```