search pdf with grep and pdftotext

# sudo apt-get install poppler-utils -y && pdftotext testfile.pdf - | grep 'match'
This is a matching line
#

Leave a Reply

Your email address will not be published. Required fields are marked *