A very simple HTTP server API for Tabula, a library for extracting tables from PDF files.
Assuming a PDF containing a table like this:
| Id | Name | |
|---|---|---|
| 1 | Eric | eric@example.com |
| 2 | Logan | logan@example.com |
| 3 | Emily | emily@example.com |
Returns JSON:
{
"pages": [
{
"tables": [
{
"data": [
{ "Id": "1", "Name": "Eric", "Email": "eric@example.com" },
{ "Id": "2", "Name": "Logan", "Email": "logan@example.com" },
{ "Id": "3", "Name": "Emily", "Email": "emily@example.com" },
]
}
]
}
]
}$ ./gradlew build
$ ./gradlew run
Set the JWT_SECRET in your production environment. For example:
$ dokku config:set app_name JWT_SECRET=put_secret_here