Skip to content

Word Read Text

Type: word-read-text  ·  Package: Word Activities v1.0.0  ·  Output: string

Reads all text from a Word document and returns it as a single string, with paragraphs separated by line breaks. It is the most direct way to read a document and then extract data with expressions.

Returns the full text of the document. Accepts session (session mode) or path (quick mode) — see the two modes.

Ninguno — pero debes indicar session o path.

ParameterEditorDescription
sessionsessionWord Open session (instead of path).
pathexpressionRoute to .docx (fast mode: opens and closes alone).

Returns a string with all the text.

Word Read Text path = = asset("contrato.docx") → output: texto
Set Variable name = vigencia value = = regexFind(texto, "Vigencia:\s*(\d+ meses)")