Skip to content

renderDocx

renderDocx(source): Uint8Array

Defined in: nodejs/packages/mdi/src/index.ts:648

Build a baseline DOCX archive from complete source in Rust.

string

Uint8Array

renderDocx(source, profile, assets?, maxImageBytes?): Promise<Uint8Array<ArrayBufferLike>>

Defined in: nodejs/packages/mdi/src/index.ts:656

Build a profile-configured DOCX archive. This overload is asynchronous for backward compatibility; validation and OOXML generation run in Rust.

assets is a separate argument so it cannot be mistaken for a profile. Pass {} as the profile when the document defaults should apply.

string

MdiDocxExportProfile

MdiImageAssets

number

Promise<Uint8Array<ArrayBufferLike>>

MIT License© 2026 Iktahana