ONLYOFFICE Docs icon

ONLYOFFICE Docs

Consume ONLYOFFICE Document Server API (Conversion, Document Builder)

Document Builder → Create Document

AI-generated

Summary

Creates a document from plain text using ONLYOFFICE Document Builder. Each line becomes a separate paragraph; an optional bold title is added at the top, and the result is saved in the selected format.

Inputs

  • Text (required) — Plain text for the document. Each newline-separated line becomes a paragraph. Can use an expression such as {{ $json.text }}.
  • Title — Optional bold heading inserted before the text.
  • Output Mode — Choose File Data (default) to download the generated file into the configured binary field, or URL Only to return its Document Server URL without downloading it.
  • Output Format — Choose DOCX (default), PDF, or PPTX.
  • Output File Name — Output filename without the extension; defaults to output. Hidden in URL Only mode.
  • Put Output File in Field — Binary property name for the generated file; defaults to data. Hidden in URL Only mode.

Output shape

One output item per input item, with JSON metadata and, in File Data mode, a binary file.

JSON includes fileName, operation, and outputUrl. In URL Only mode it also includes these fields but no binary data. In File Data mode the file is stored under the configured binary property name.

Links

Discussion