diff --git a/pom.xml b/pom.xml
index 20fabe2..41196d1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,8 +6,8 @@
4.0.0
com.amastigote
unstamper
- 0.1.1
- text stamp remover for PDF files
+ 0.1.2
+ Text stamp remover for PDF files.
pdf-unstamper
https://github.com/hwding/pdf-unstamper
diff --git a/script/install b/script/install
index 881e9fc..ff4e6d8 100755
--- a/script/install
+++ b/script/install
@@ -1,13 +1,13 @@
#!/bin/bash
#AUTH hwding
-#DATE AUG/25/2017
+#DATE SEP/04/2017
#DESC install unstamp as a command
user_bin=`echo ~`"/bin/"
jar_name="pdf-unstamper.jar"
exe_name="unstamp"
-_version="0.1.1"
+_version="0.1.2"
jar_durl="https://github.com/hwding/pdf-unstamper/releases/download/$_version/$jar_name"
function chk_f() {
diff --git a/src/com/amastigote/unstamper/core/Processor.java b/src/com/amastigote/unstamper/core/Processor.java
index c54244a..a1e3702 100644
--- a/src/com/amastigote/unstamper/core/Processor.java
+++ b/src/com/amastigote/unstamper/core/Processor.java
@@ -1,6 +1,6 @@
/*
AUTH | hwding
- DATE | Aug 27 2017
+ DATE | Sep 04 2017
DESC | text stamp remover for PDF files
MAIL | m@amastigote.com
GITH | github.com/hwding
@@ -8,7 +8,6 @@
package com.amastigote.unstamper.core;
import com.amastigote.unstamper.log.GeneralLogger;
-import org.apache.pdfbox.cos.COSName;
import org.apache.pdfbox.cos.COSString;
import org.apache.pdfbox.pdfparser.PDFStreamParser;
import org.apache.pdfbox.pdfwriter.ContentStreamWriter;
@@ -19,11 +18,9 @@
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;
-import java.util.stream.Collectors;
public class Processor {
public static void process(File file, String[] strings) {
@@ -35,45 +32,34 @@ public static void process(File file, String[] strings) {
PDDocument pdDocument = PDDocument.load(file);
pdDocument.getPages().forEach(pdPage -> {
try {
- /* START: loading font resources for further parsing */
+ /* START: loading font resources from current page */
PDFStreamParser pdfStreamParser = new PDFStreamParser(pdPage);
pdfStreamParser.parse();
- List