0xabu / pdfannots

Extracts and formats text annotations from a PDF file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scan with OCR: words not split

dirksierd opened this issue · comments

commented

With this PDF-file the words are not split. It's an OCR-scan. I tried modifying the word_margin in LAParams to no avail. When exporting the highlights using PDF Expert (my macOS-PDF Reader) it works fine though: here's the expected output.

Any thoughts?

Best regards

This is an issue in the pdfminer library. I confirmed that:

  • pdfminer's pdf2txt.py tool fails in a similar way -- no spaces and far too many chars extracted
  • Both my PDF reader and Poppler's pdftotext utility extract the text correctly

If you do report an issue (or find an existing one) on the pdfminer project, please link it here.