From 5602dc7cad3ed5ce7ca320e19b442112527c639a Mon Sep 17 00:00:00 2001 From: Jeff-forgeai Date: Thu, 30 Nov 2017 09:57:32 -0500 Subject: [PATCH 1/4] Ref T333 --- pom.xml | 5 ++++- src/main/java/technology/tabula/CommandLineApp.java | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index bb876ccb..c15c5adc 100644 --- a/pom.xml +++ b/pom.xml @@ -103,7 +103,7 @@ - + diff --git a/src/main/java/technology/tabula/CommandLineApp.java b/src/main/java/technology/tabula/CommandLineApp.java index 66de8b05..a9a1c8c1 100644 --- a/src/main/java/technology/tabula/CommandLineApp.java +++ b/src/main/java/technology/tabula/CommandLineApp.java @@ -321,7 +321,7 @@ public static Options buildOptions() { return o; } - private static class TableExtractor { + public static class TableExtractor { private boolean guess = false; private boolean useLineReturns = false; private BasicExtractionAlgorithm basicExtractor = new BasicExtractionAlgorithm(); @@ -424,7 +424,7 @@ private String getOutputFilename(File pdfFile) { return pdfFile.getPath().replaceFirst("(\\.pdf|)$", extension); } - private enum OutputFormat { + public enum OutputFormat { CSV, TSV, JSON; @@ -439,7 +439,7 @@ static String[] formatNames() { } } - private enum ExtractionMethod { + public enum ExtractionMethod { BASIC, SPREADSHEET, DECIDE From 2487d35835ac94e36f75e48110a20ed8bda3cbb3 Mon Sep 17 00:00:00 2001 From: Jeff-forgeai Date: Thu, 30 Nov 2017 09:59:30 -0500 Subject: [PATCH 2/4] Ref T333 --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index c15c5adc..d76726a2 100644 --- a/pom.xml +++ b/pom.xml @@ -103,7 +103,8 @@ - +--> maven-compiler-plugin 3.1 @@ -157,7 +158,6 @@ maven-surefire-plugin 2.20.1 - -Xms1024m -Xmx2048m From dd1f352058f34ab384b2c0f52019b07e1b2b6fbe Mon Sep 17 00:00:00 2001 From: Jeff-forgeai Date: Thu, 30 Nov 2017 10:04:31 -0500 Subject: [PATCH 3/4] Ref T333 --- pom.xml | 7 +++++-- src/main/java/technology/tabula/CommandLineApp.java | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index bb876ccb..d76726a2 100644 --- a/pom.xml +++ b/pom.xml @@ -103,7 +103,8 @@ - + maven-compiler-plugin 3.1 @@ -156,7 +158,6 @@ maven-surefire-plugin 2.20.1 - -Xms1024m -Xmx2048m @@ -204,6 +205,7 @@ + diff --git a/src/main/java/technology/tabula/CommandLineApp.java b/src/main/java/technology/tabula/CommandLineApp.java index 66de8b05..a9a1c8c1 100644 --- a/src/main/java/technology/tabula/CommandLineApp.java +++ b/src/main/java/technology/tabula/CommandLineApp.java @@ -321,7 +321,7 @@ public static Options buildOptions() { return o; } - private static class TableExtractor { + public static class TableExtractor { private boolean guess = false; private boolean useLineReturns = false; private BasicExtractionAlgorithm basicExtractor = new BasicExtractionAlgorithm(); @@ -424,7 +424,7 @@ private String getOutputFilename(File pdfFile) { return pdfFile.getPath().replaceFirst("(\\.pdf|)$", extension); } - private enum OutputFormat { + public enum OutputFormat { CSV, TSV, JSON; @@ -439,7 +439,7 @@ static String[] formatNames() { } } - private enum ExtractionMethod { + public enum ExtractionMethod { BASIC, SPREADSHEET, DECIDE From c0d27732fcc326d478402dea2b61d7aaa6531bcf Mon Sep 17 00:00:00 2001 From: andy-forgeai Date: Tue, 27 Aug 2019 08:10:53 -0400 Subject: [PATCH 4/4] FG-1519 #comment Java11 changes for tabula --- pom.xml | 538 ++++++++++++++++++++++++++------------------------------ 1 file changed, 252 insertions(+), 286 deletions(-) diff --git a/pom.xml b/pom.xml index d76726a2..43d1bd51 100644 --- a/pom.xml +++ b/pom.xml @@ -1,310 +1,276 @@ - - 4.0.0 - technology.tabula - tabula - 1.0.2-SNAPSHOT - Tabula - Extract tables from PDF files - http://github.com/tabulapdf/tabula-java + + 4.0.0 + technology.tabula + tabula + 1.0.2-SNAPSHOT + Tabula + Extract tables from PDF files + http://github.com/tabulapdf/tabula-java - - - MIT License - http://www.opensource.org/licenses/mit-license.php - - + + + MIT License + http://www.opensource.org/licenses/mit-license.php + + - - - Manuel Aristaran - Tabula - http://github.com/tabulapdf - - - Jeremy B. Merrill - Tabula - http://github.com/tabulapdf - - - Mike Tigas - Tabula - http://github.com/tabulapdf - - + + + Manuel Aristaran + Tabula + http://github.com/tabulapdf + + + Jeremy B. Merrill + Tabula + http://github.com/tabulapdf + + + Mike Tigas + Tabula + http://github.com/tabulapdf + + - - scm:git:git@github.com:tabulapdf/tabula-java.git - scm:git:git@github.com:tabulapdf/tabula-java.git - git@github.com:tabulapdf/tabula-java.git - tabula-1.0.0-SNAPSHOT - + + scm:git:git@github.com:tabulapdf/tabula-java.git + scm:git:git@github.com:tabulapdf/tabula-java.git + git@github.com:tabulapdf/tabula-java.git + tabula-1.0.0-SNAPSHOT + - - - sonatype - Sonatype repository - https://oss.sonatype.org/content/repositories/snapshots/ - - + + + sonatype + Sonatype repository + https://oss.sonatype.org/content/repositories/snapshots/ + + - - UTF-8 - UTF-8 - + + UTF-8 + UTF-8 + - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.10.3 - - true - - - - + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.10.3 + + true + + + + - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.3 - true - - ossrh - https://oss.sonatype.org/ - 40766864c3b853 - true - - - - org.apache.maven.plugins - maven-source-plugin - 2.2.1 - - - attach-sources - - jar-no-fork - - - - - - - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - - maven-assembly-plugin - - - - technology.tabula.CommandLineApp - - - - jar-with-dependencies - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.20.1 - - -Xms1024m -Xmx2048m - - - - - org.apache.maven.plugins - maven-eclipse-plugin - 2.10 - - true - true - - - - + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.8 + true + + ossrh + https://oss.sonatype.org/ + 40766864c3b853 + true + + + + org.apache.maven.plugins + maven-source-plugin + 3.1.0 + + + attach-sources + + jar-no-fork + + + + + + + maven-compiler-plugin + 3.8.0 + + 11 + + + + maven-assembly-plugin + 3.1.1 + + + + technology.tabula.CommandLineApp + + + + jar-with-dependencies + + + + + org.apache.maven.plugins + maven-surefire-plugin + 3.0.0-M3 + + -Xms1024m -Xmx2048m + + + + + org.apache.maven.plugins + maven-eclipse-plugin + 2.10 + + true + true + + + + - - - release - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.9.1 - - - attach-javadocs - - jar - - - - - - org.apache.maven.plugins - maven-source-plugin - 2.2.1 - - - attach-sources - - jar-no-fork - - - - - - - - - + + + release + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.9.1 + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar-no-fork + + + + + + + + + - - - net.sf.jsi - jsi - 1.1.0-SNAPSHOT - + + + net.sf.jsi + jsi + 1.1.0-SNAPSHOT + - - org.slf4j - slf4j-api - 1.7.25 - + + org.slf4j + slf4j-api + 1.7.25 + - - org.slf4j - slf4j-simple - 1.7.25 - + + org.slf4j + slf4j-simple + 1.7.25 + - - org.apache.pdfbox - pdfbox - 2.0.8 - + + org.apache.pdfbox + pdfbox + 2.0.8 + - - org.bouncycastle - bcprov-jdk15on - 1.56 - + + org.bouncycastle + bcprov-jdk15on + 1.56 + - - org.bouncycastle - bcmail-jdk15on - 1.56 - + + org.bouncycastle + bcmail-jdk15on + 1.56 + - - junit - junit - 4.11 - test - + + junit + junit + 4.11 + test + - - commons-cli - commons-cli - 1.4 - + + commons-cli + commons-cli + 1.4 + - - org.apache.commons - commons-csv - 1.4 - + + org.apache.commons + commons-csv + 1.4 + - - com.google.code.gson - gson - 2.8.0 - + + com.google.code.gson + gson + 2.8.0 + - - com.github.jai-imageio - jai-imageio-core - 1.3.1 - + + com.github.jai-imageio + jai-imageio-core + 1.3.1 + - - com.github.jai-imageio - jai-imageio-jpeg2000 - 1.3.0 - + + com.github.jai-imageio + jai-imageio-jpeg2000 + 1.3.0 + - - com.levigo.jbig2 - levigo-jbig2-imageio - 2.0 - - + + com.levigo.jbig2 + levigo-jbig2-imageio + 2.0 + +