See patterns section of the documentation. In your case it will look something like:
fileviewer {{/path/to/SPECIALFOLDER/*.pdf}} myfancyscript %f
fileviewer *.pdf pdftotext -nopgbrk %c -
P.S. Looks like notification email got lost, saw the question just now.