PyMuPDF 1.24.2 Documentationmake_table(where, rows=1, cols=COLS) # extract rectangles covered by images on this page IMG_RECTS = sorted( # image rects on page (sort top-left to bottom-right) [fitz.Rect(item["bbox"]) for item in page y0 = coords[page.number] # read coordinates of the page x = sorted(list(x)) + [x1] # list of cell left-right borders y = [y0] + sorted(list(y)) # list of cell top-bottom borders shape = page.new_shape() the words’ bboxes. Similar is true for “blocks”, “dict”, “json”, “rawdict”, “rawjson”: they all are sorted by (y1, x0) of the resp. block bbox. If specified for “text”, then internally “blocks” is used. (New0 码力 | 565 页 | 6.84 MB | 1 年前3
共 1 条
- 1
相关搜索词













