createDocx

createDocx

BASIC / ADVANCED / PREMIUM

Generates the Word document.

Description
public DOCXStructure createDocx()
public DOCXStructure createDocx(String fileName)
public ZipOutputStream createDocx(OutputStream stream)

Only available in Premium licenses

It generates a DOCX file or a stream. The constructor admits an optional parameter: the base template. If omitted the default Javadocx base template is used.

The available options are:

  • "docx": the default base template is used.
  • The path to a custom base template.
  • An OutputStream object.
Parameters

fileName

The path to the resulting Word document.

stream

An OutputStream. Only available in Premium licenses.

Code samples

Example #1