diff --git a/deepdoc/parser/pdf_parser.py b/deepdoc/parser/pdf_parser.py index 763631e320..b95fd2f741 100644 --- a/deepdoc/parser/pdf_parser.py +++ b/deepdoc/parser/pdf_parser.py @@ -749,6 +749,7 @@ def cropout(bxs, ltype, poss): "layoutno", ""))) left, top, right, bott = b["x0"], b["top"], b["x1"], b["bottom"] + if right < left: right = left + 1 poss.append((pn + self.page_from, left, right, top, bott)) return self.page_images[pn] \ .crop((left * ZM, top * ZM,