Extract tables from PDF files
tabula-java is a library for extracting tables from PDF files — it is the table extraction engine that powers Tabula (repo). You can use tabula-java as a command-line tool to programmatically extract tables from PDFs.
© 2014-2020 Manuel Aristarán. Available under MIT License. See LICENSE.
Download a version of the tabula-java's jar, with all dependencies included, that works on Mac, Windows and Linux from our releases page.
tabula-java provides a command line application:
…It also includes a debugging tool, run java -cp ./target/tabula-1.0.5-jar-with-dependencies.jar technology.tabula.debug.Debug -h for the available options.
You can also integrate tabula-java with any JVM language. For Java examples, see the tests folder.
JVM start-up time is a lot of the cost of the tabula command, so if you're trying to extract many tables from PDFs, you have a few options for speeding it up:
A simple Java code example which extracts all rows and cells from all tables of all pages of a PDF document:
…For more detail information check the Javadoc. The Javadoc API documentation can be generated (see also 'Building from Source' section) via
mvn javadoc:javadocwhich generates the HTML files to directory target/site/apidocs/
Clone this repo and run:
mvn clean compile assembly:singleInterested in helping out? We'd love to have your help!
You can help by:
tabula-java to people who might be able to benefit from using it.You can also support our continued work on tabula-java with a one-time or monthly donation on OpenCollective. Organizations who use tabula-java can also sponsor the project for acknowledgement on our official site and this README.
Special thanks to the following users and organizations for generously supporting Tabula with donations and grants:
No open issues yet, or sync has not completed.