PDF Get Text (Page)
PDF Get Text (Page)
Section titled “PDF Get Text (Page)”Type: pdf-get-text-page · Package: PDF Activities v1.0.0 · Output: string
Extracts text from a specific page of a PDF. Useful when the data you are looking for is always on a specific page (the first, the last), or to process the document page by page.
How it works
Section titled “How it works”Returns the text of the page indicated by page (numbered from 1).
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
path | expression | PDF file path. |
page | expression | Page number (starting at 1). |
Optional parameters
Section titled “Optional parameters”Ninguno.
Output
Section titled “Output”Returns a string with the text of that page.
Example
Section titled “Example”Go through all the pages reading each one:
PDF Get Page Count path = = ruta → output: totalFor Loop from = 1 to = = total + 1 indexVariable = p └─ activities: PDF Get Text (Page) path = = ruta page = = p → output: textoPagina ... procesar la página ...Related activities
Section titled “Related activities”- PDF Get Text — all the text at once.
- PDF Get Page Count — find out how many pages you have.