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(FileInputStream stream)
Applies a template model to the Word document from a stream.
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(FileOutputStream stream)
Saves the current changes to the specified stream.
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(FileOutputStream stream)
Saves the Word document with the applied template model to a stream.
public final void saveWithModelAs(String path)
Saves the Word document with the applied template model to a file.