If (presumably) there are no glyphs on a page, the test for the average character width can divide by zero here: https://github.com/xigt/freki/blob/27e77a23b03327b8841485648b8b198996d2e3b5/freki/readers/pdfminer.py#L66