pdf2txt Simple Groovy script using PDF Box to extract PDF text into text file Usage groovy pdf2txt.groovy <name-of-pdf-minus-extension> Example Extracts text from test.pdf and saves it in test.txt groovy pdf2txt.groovy test