Built-In Functions
Entry point for Word document operations — returns a fluent WordDocument builder
The word() BIF is the primary entry point for all Word document operations. It returns a WordDocument instance that supports fluent method chaining.
Method Signature
word( [file], [text], [html], [markdown] )Arguments
Argument
Type
Required
Default
Description
file
String
No
—
Path to an existing .docx file to open and modify
text
String
No
—
Plain text content to populate the document with
html
String
No
—
HTML string to parse and populate the document with
markdown
String
No
—
Markdown string to parse and populate the document with
Returns
A WordDocument instance — a fluent builder that supports method chaining.
Examples
Create a New Empty Document
Open an Existing Document
Create from Plain Text
Create from Markdown
Create from HTML
Combined Arguments
Full Fluent Chain
Related
Fluent APIhttps://github.com/ortus-boxlang/boxlang-docs/tree/v1.x/boxlang-framework/boxlang-plus/user-guide.mdLast updated
Was this helpful?
