Uses pdfbox api to convert a pdf to plaintext