今日已更新 312 条资讯 | 累计 20782 条内容
关于我们

Struggling with PDF scanned nested tabels to html/md/json conversion

/u/Kakarot_DB 2026年06月18日 20:59 2 次阅读 来源:Reddit r/programming

For the past few days, I've been trying to parse a PDF (scanned and text based) which has the same contents. PDF has nested tables Tables start at one page and end at another Currently I have been using (docling)[ https://docling-project.github.io ] to help me out with this text and convert it to the formats I require. I have a few limitations that I have a limit of 30s per page (2 minutes for the 4 paged pdf). And the biggest limitation is that I have to optimize it for the CPU. It has to run at a maximum of around 30s per page on the CPU . I have been trying a lot but docling is always failing at figuring out the table breaking in between two pages, and one single table and information that spills out from one page to another, is created into different tables by docling. How do I resolve this ? I am not being able to find a solution that works well within my given constraints better than docling currently. I've tried PyMuPDF, I've tried camelot as well. Camelot gave very nice results in converting to CSV, but it fails when nested tables come into the picture. I even tried to integrate camelot + docling into a hybrid pipeline but that also failed with my PDF with nested tables. Has anyone faced this problem before? Does anyone know of resources that could help me out with this problem? Any recommendations? Anything? :sob: submitted by /u/Kakarot_DB [link] [留言]

本文内容来源于互联网,版权归原作者所有
查看原文