PDF Search Text
PDF Search Text
Section titled “PDF Search Text”Type: pdf-search-text · Package: PDF Activities v1.0.0 · Output: List
Searches for text in the PDF and returns the list of page numbers (starting from 1) where it appears. Useful for locating sections within long documents before extracting or manipulating those pages.
How it works
Section titled “How it works”It scans the document looking for text and returns the numbers of the pages where it is found. By default not case sensitive.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
path | expression | PDF file path. |
text | expression | Texto a buscar. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
caseSensitive | boolean | Be case sensitive. By default false. |
Output
Section titled “Output”Returns a List of page numbers (1-based). Empty if not found.
Example
Section titled “Example”Find the page of an annex and extract it to a separate PDF:
PDF Search Text path = = ruta text = "ANEXO A" → output: paginasIf condition = = count(paginas) > 0 └─ then: PDF Extract Pages path = = ruta pages = = toString(first(paginas)) output = "C:/anexoA.pdf"Related activities
Section titled “Related activities”- PDF Contains Text — just know if it appears (yes/no).
- PDF Extract Pages — extract the found pages.