Use Cases for Aspose.Words FOSS for Java
Each use case below names the task, the classes involved, and the guide with a working example. All of them ran on Java 8, 17 and 21 against the published package.
Use Cases
Generate a Report
Write a heading, a paragraph, and a table into a new document and save it as DOCX. This uses Document, DocumentBuilder, and StyleIdentifier. See How to Build a Table in a Word Document in Java.
Fill a Template
Replace a placeholder such as {{CLIENT_NAME}} with a value and save the filled document under a new name. This uses Range.replace. See How to Find and Replace Text in a Word Document in Java.
Convert Markdown to DOCX
Open a Markdown file and save it as a Word document. See How to Convert Markdown to DOCX in Java.
Extract Text
Open a document and read its text, or save it as plain text or Markdown. See How to Work with Documents in Java.
Merge Documents
Append one document to another with appendDocument and an ImportFormatMode. See How to Work with Documents in Java.
Finalize a Reviewed Document
Accept all tracked changes and save the final version. See How to Accept Tracked Changes in Java.