4 ms·
If you are want to extract tabular data from a text-based PDF. Check out the Tabula project: https://tabula.technology/ https://tabula.technology/ The core is
by Cactus2018 6y ago
If you are want to extract tabular data from a text-based PDF. Check out the Tabula project: https://tabula.technology/ https://tabula.technology/
The core is tabula-java, and there are bindings for R in tabulizer, Node.js in tabula-js, and Python in tabula-py.
- iav 6y agoI love used tabula and recommend Camelot over it. The Camelot folks even put together a head to head comparison page (on their website) that shows their results consistently coming out ahead of Tabula. My other complaint with Tabula is total lack of metadata. It’s impossible to know even what page of the PDF the tables are located on! You either have to extract one page at a time or you just get a data frame with no idea which table is located on which page.
- nl 6y agoThe best I've used is PDFPlumber. Camelot lists it on its comparison page[1] but I've had better results. Both are better than Tabula though. [1] https://github.com/camelot-dev/camelot/wiki/Comparison-with-other-PDF-Table-Extraction-libraries-and-tools#pdfplumber https://github.com/camelot-dev/camelot/wiki/Comparison-with-...
- iav 6y agoThanks - I cannot get Camelot to run in parallel (I use celery workers to process PDFs), there is some bug in Ghostscript that SEGFAULTS. I’ll try using PDFPlumber instead! By the way Apache Tika has been the best for basic text extraction - even outputs to HTML which is neat.