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.
Parameters
Section titled “Parameters”source
Section titled “source”string
profile?
Section titled “profile?”MdiDocxExportProfile = {}
assets?
Section titled “assets?”imageByteLimit?
Section titled “imageByteLimit?”number
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>
MIT License© 2026 Iktahana