Skip to content

readDocx

readDocx(docx): ReadResult<FlowDoc>

Defined in: src/word/docx-reader.ts:82

Read a .docx package into the FlowDoc interlayer (ir-design §7): the document-derived half of what the converter used to do inline. Parses the main document, styles, numbering, notes, comments, headers/footers, charts, embedded fonts and core properties, runs the body through the stage-6 FlowDoc transforms (list markers then the style cascade), and returns the tree plus any graceful-degradation losses. Caller-supplied conversion options (fonts, PDF/A, signature) stay with the converter/facade.

Uint8Array

The raw .docx (OPC ZIP) bytes.

ReadResult<FlowDoc>

The parsed FlowDoc and the losses recorded while reading.