问题
pdfminer3 is simple tool for extracting text from pdf. While browsing the cite for minimal reproducible example, faced with the problem of spaces missing in extracted text.
回答1:
Solution is to specify laparams next way
from pdfminer3.layout import LAParams
converter = TextConverter(resource_manager, fake_file_handle, laparams=LAParams())
来源:https://stackoverflow.com/questions/58889337/pdfminer3-extracts-text-from-pdf-without-spaces