diff --git a/pom.xml b/pom.xml
index 2d0db81..20fabe2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
4.0.0
com.amastigote
unstamper
- 0.1.0
+ 0.1.1
text stamp remover for PDF files
pdf-unstamper
https://github.com/hwding/pdf-unstamper
diff --git a/script/install b/script/install
index 9bd9036..881e9fc 100755
--- a/script/install
+++ b/script/install
@@ -7,7 +7,7 @@
user_bin=`echo ~`"/bin/"
jar_name="pdf-unstamper.jar"
exe_name="unstamp"
-_version="0.1.0"
+_version="0.1.1"
jar_durl="https://github.com/hwding/pdf-unstamper/releases/download/$_version/$jar_name"
function chk_f() {
diff --git a/src/com/amastigote/unstamper/Main.java b/src/com/amastigote/unstamper/Main.java
index 0b19f21..45a2739 100644
--- a/src/com/amastigote/unstamper/Main.java
+++ b/src/com/amastigote/unstamper/Main.java
@@ -16,6 +16,12 @@
public class Main {
+ static {
+ /* Disable Logging in Apache PDFBox */
+ System.setProperty("org.apache.commons.logging.Log",
+ "org.apache.commons.logging.impl.NoOpLog");
+ }
+
public static void main(String[] args) {
CommandLine commandLine = null;
try {
diff --git a/src/com/amastigote/unstamper/core/Processor.java b/src/com/amastigote/unstamper/core/Processor.java
index 4c03321..ac89c8e 100644
--- a/src/com/amastigote/unstamper/core/Processor.java
+++ b/src/com/amastigote/unstamper/core/Processor.java
@@ -19,6 +19,7 @@
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
+import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@@ -37,33 +38,51 @@ public static void process(File file, String[] strings) {
/* START: loading font resources for further parsing */
PDFStreamParser pdfStreamParser = new PDFStreamParser(pdPage);
pdfStreamParser.parse();
- List