renderDocx
Call Signature
Section titled “Call Signature”renderDocx(
source):Uint8Array
Defined in: nodejs/packages/mdi/src/index.ts:648
Build a baseline DOCX archive from complete source in Rust.
Parameters
Section titled “Parameters”source
Section titled “source”string
Returns
Section titled “Returns”Uint8Array
Call Signature
Section titled “Call Signature”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.
Parameters
Section titled “Parameters”source
Section titled “source”string
profile
Section titled “profile”assets?
Section titled “assets?”maxImageBytes?
Section titled “maxImageBytes?”number
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>
MIT License© 2026 Iktahana