Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 356 Bytes

README.md

File metadata and controls

16 lines (9 loc) · 356 Bytes

PDF Tables Extractor

Showcasing the use of tabula to extract tables from PDF documents

JSON=$(java -jar "target/extract-pdf-tables-1.0.2-jar-with-dependencies.jar" "{{.FILE}}" | jq '[.[] | select(length > 0)]')

# store JSON in extracts.json file
echo $JSON > out/extracts.json

# display the first table found
echo $JSON | jq '.[0]'