Skip to content

renderDocxWithProfile

renderDocxWithProfile(source, profile?, assets?, imageByteLimit?): Promise<Uint8Array<ArrayBufferLike>>

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

Build a configured DOCX in Rust using the shared print profile. The profile supports metadata, writing mode, paper size, margins and page numbers.

When assets is set, body images are embedded from those bytes. The core still computes the content box from profile.

string

MdiDocxExportProfile = {}

MdiImageAssets

number

Promise<Uint8Array<ArrayBufferLike>>

MIT License© 2026 Iktahana