Extract pure functions for the parsed text handling.
Extract PDFBox code into own namespace.