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.
Any suggestions for the attached table?
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.