Skip to content

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?

Look for text throughout the document. By default the search is case insensitive (caseSensitive = false). Returns true as soon as it is found.

ParameterEditorDescription
pathexpressionPDF file path.
textexpressionTexto a buscar.
ParameterEditorDescription
caseSensitivebooleanBe case sensitive. By default false.

Returns a boolean: true if the text appears in the document.

Classify a PDF according to its content:

PDF Contains Text path = = ruta text = "FACTURA ELECTRÓNICA" → output: esFactura
If condition = = esFactura
└─ then:
Move File source = = ruta destination = = pathJoin("C:/facturas", fileName(ruta))