Skip to content

extra wide table not working? #49

Description

@bgriffen

Any suggestions for the attached table?

from gmft.auto import CroppedTable, AutoTableDetector, AutoTableFormatter
from gmft.pdf_bindings import PyPDFium2Document

detector = AutoTableDetector()
formatter = AutoTableFormatter()

def ingest_pdf(pdf_path): # produces list[CroppedTable]
    doc = PyPDFium2Document(pdf_path)
    tables = []
    for page in doc:
        tables += detector.extract(page)
    return tables, doc

tables, doc = ingest_pdf("crop.pdf")
doc.close() 

Yields nothing unfortunatley.

crop.pdf

I'm after either the contents of each cell or the vertices positions for each cell (so I could maybe feed to Vision Language Model). I also tried gmft_pymupdf with no luck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ocrIssue requesting OCR support

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions