/gmft_pymupdf

Use pymupdf with gmft.

Primary LanguagePythonGNU Affero General Public License v3.0AGPL-3.0

gmft_pymupdf

Use pymupdf with gmft.

Installation

pip install git+https://github.com/conjuncts/gmft_pymupdf.git

Usage

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)

License

gmft_pymupdf is licensed under AGPL-3.0, in accordance with PyMuPDF's AGPL-3.0 license.