tabulapdf / tabula-web-java

Tabula is a tool for liberating data tables trapped inside PDF files
http://tabula.technology
MIT License
11 stars 7 forks source link

How do I run this? #1

Closed ghost closed 6 years ago

ghost commented 7 years ago

I'm trying to use this project because of this issue in the original.

Tabula's github says java -Dfile.encoding=utf-8 -Xms256M -Xmx1024M -jar tabula.jar but there is no tabula.jar here. How do I run this? Thanks!

ghost commented 7 years ago

mvn package followed by java -jar target/tabula-web-0.0.1-SNAPSHOT-jar-with-dependencies.jar main, navigating in browser to localhost:4567 upload file,

Aug 25, 2017 11:33:50 AM org.apache.pdfbox.contentstream.PDFStreamEngine operatorException
SEVERE: Cannot read JPEG2000 image: Java Advanced Imaging (JAI) Image I/O Tools are not installed

Including this in the pom.xml doesn't help either.

            <dependency>
                <groupId>com.github.jai-imageio</groupId>
                <artifactId>jai-imageio-core</artifactId>
                <version>1.3.1</version>
            </dependency>    
            <dependency>
                <groupId>com.github.jai-imageio</groupId>
                <artifactId>jai-imageio-jpeg2000</artifactId>
                <version>1.3.0</version>
            </dependency>