PDF Get Text
PDF Get Text
Section titled “PDF Get Text”Type: pdf-get-text · Package: PDF Activities v1.0.0 · Output: string
Extracts all text from a PDF, joining the content of all its pages into a single string. It is the central activity to read documents: invoices, contracts, reports — and then extract concrete data with regular expressions.
How it works
Section titled “How it works”Reads the text from each page of the PDF and concatenates it, separating the pages with separator (by default, two line breaks). Returns the result as a string.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
path | expression | PDF file path. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
separator | expression | Separator between pages. By default, two line breaks. |
Output
Section titled “Output”Returns a string with all the PDF text.
Example
Section titled “Example”Extract the total and number of an invoice:
PDF Get Text path = = rutaFactura → output: textoSet Variable name = numero value = = regexFind(texto, "FAC-\d+")Set Variable name = total value = = regexFind(texto, "Total:\s*\$?([\d.,]+)")Related activities
Section titled “Related activities”- PDF Get Text (Page) — extract only one page.
- PDF Search Text — find which page a text is on.
- OCR Recognize — for scanned PDFs.