Word Read Paragraphs
Word Read Paragraphs
Section titled “Word Read Paragraphs”Type: word-read-paragraphs · Package: Word Activities v1.0.0 · Output: List
Reads all paragraphs in a document and returns them as a list of texts (one per paragraph). Useful when you want to process the document paragraph by paragraph, rather than as a single block of text.
How it works
Section titled “How it works”Returns the list of paragraphs. By default it omits empty paragraphs (includeEmpty = false). Accepts session or path — see the two modes.
Required parameters
Section titled “Required parameters”Ninguno — pero debes indicar session o path.
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
session | session | Word Open session (instead of path). |
path | expression | Route to .docx (fast mode). |
includeEmpty | boolean | Include empty paragraphs. By default false. |
Output
Section titled “Output”Returns a List of texts (one paragraph per element). Go through it with For Each.
Example
Section titled “Example”Word Read Paragraphs path = = asset("acta.docx") → output: parrafosFor Each items = = parrafos itemVariable = p └─ activities: If condition = = startsWith(str(p), "ACUERDO") └─ then: Log message = = pRelated activities
Section titled “Related activities”- Word Read Text — all text in a single string.
- Word Read Tables — extract the tables.