Tidied up a tad. Added return for corrupt/unreadable PDF files, it wasn't breaking and it would just barrel through trying to read a bad PDF file. Though the PDF files I'm testing with have bookmarks and open in both Acrobat 11 and OS X Preview, PDFBox doesn't seem to like them. Acrobat does say they don't pass some compliance checks for PDF standards though, could be the reason there. Will come back to that later...