Create PDFs and plain text from hOCR documents