TextPositionTracker: set boxes_flow=None
We don't care about the order of lines in our analysis, and this is an expensive calculation in pdfminer.
This commit is contained in:
@@ -221,7 +221,7 @@ class TextPositionTracker(PDFLayoutAnalyzer):
|
||||
def get_page_analysis(infile, pageno, pscript5_mode):
|
||||
rman = pdfminer.pdfinterp.PDFResourceManager(caching=True)
|
||||
dev = TextPositionTracker(
|
||||
rman, laparams=LAParams(all_texts=True, detect_vertical=True)
|
||||
rman, laparams=LAParams(all_texts=True, detect_vertical=True, boxes_flow=None)
|
||||
)
|
||||
interp = pdfminer.pdfinterp.PDFPageInterpreter(rman, dev)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user