Text search in docx and pdf files

You can install the node-red-contrib-pdf-reader node.

Use a file read node, set it to output buffer, run it through the pdf node and attach a debug node.