Fork from PDFMiner.