ONLYOFFICE Docs icon

ONLYOFFICE Docs

Consume ONLYOFFICE Document Server API (Conversion, Document Builder)

Document Builder → Extract Text

AI-generated

Summary

Extracts structured text from a document that the ONLYOFFICE Document Server can reach. The operation returns paragraphs and tables as JSON workflow items; set File URL to the document URL, or use {{ $json.outputUrl }} from a previous Document Builder step.

Inputs

  • File URL (required) — URL of the input document, reachable from the ONLYOFFICE Document Server.

Output shape

A list of workflow items containing extracted document elements.

Paragraph items contain type, text, and the element index; table items contain type, rows (an array of cell-text rows), and index. Empty paragraphs are skipped. The node downloads the Document Builder result as UTF-8 text, parses its JSON array, and returns each element as an item. If the array is empty, it returns one item with an empty JSON object. The source script temporarily replaces document content with the extraction JSON to produce its output file.

Links

Discussion