Table of Contents
The first layer of Uniword’s verification pipeline checks the Open Packaging Conventions (OPC) structure of DOCX files.
1. What OPC Checks
- ZIP integrity (OPC-001)
-
Verifies that the file is a valid ZIP archive that can be opened without errors. Corrupted ZIP files fail at this stage.
- Content types (OPC-002, OPC-003)
-
Validates that
[Content_Types].xmlexists, is well-formed XML, and correctly lists all parts in the package with their MIME types. - Relationships (OPC-005, OPC-006)
-
Checks that
_rels/.relsand all per-part.relsfiles exist and reference valid targets. Every relationship target must resolve to an actual part within the package. - Part presence (OPC-004)
-
Verifies that required parts are present. At minimum,
word/document.xmlmust exist in a valid DOCX file.
2. CLI Usage
# OPC validation is included by default in verify
uniword verify document.docx
# Verbose output shows detailed OPC checks
uniword verify document.docx --verbose