pip install git+https://github.com/conjuncts/gmft_pymupdf.git
from gmft_pymupdf import PyMuPDFDocument
doc = PyMuPDFDocument("path/to/pdf")
# gmft remains unchanged
from gmft import TableDetector
detector = TableDetector()
tables = []
for page in doc:
tables += detector.extract(page)
gmft_pymupdf is licensed under AGPL-3.0, in accordance with PyMuPDF's AGPL-3.0 license.