PDF Contains Text
PDF Contains Text
Section titled “PDF Contains Text”Type: pdf-contains-text · Package: PDF Activities v1.0.0 · Output: boolean
Checks if the PDF contains text on any of its pages and returns true or false. Useful for classifying documents quickly: is it an invoice? Does it include a certain clause? Does it mention a client?
How it works
Section titled “How it works”Look for text throughout the document. By default the search is case insensitive (caseSensitive = false). Returns true as soon as it is found.
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 boolean: true if the text appears in the document.
Example
Section titled “Example”Classify a PDF according to its content:
PDF Contains Text path = = ruta text = "FACTURA ELECTRÓNICA" → output: esFacturaIf condition = = esFactura └─ then: Move File source = = ruta destination = = pathJoin("C:/facturas", fileName(ruta))Related activities
Section titled “Related activities”- PDF Search Text — return the pages where it appears.
- PDF Get Text — extract all text for analysis.