WordEditor

public final class WordEditor

Provides specialized editing capabilities for Word documents. Supports template-based document generation and manipulation of OpenXML Word documents.

Functions

Link copied to clipboard
public final void applyTemplateModel(String jsonTemplate)
Applies a template model to the Word document from a JSON string.
Link copied to clipboard
public final void close()
Closes the editor and releases all associated resources.
Link copied to clipboard
public final static WordEditor edit(Document document)
Creates a new WordEditor instance and begins editing the specified document.
Link copied to clipboard
public final void save()
Saves the current changes made in the editor.
Link copied to clipboard
public final void saveAs(String path)
Saves the current changes to a file at the specified path.
Link copied to clipboard
public final void saveWithModelAs(String path)
Saves the Word document with the applied template model to a file.