From 71f91dd5537bf58c29cddcb6ca8c063fb69a6bd3 Mon Sep 17 00:00:00 2001 From: hwding Date: Tue, 23 Oct 2018 21:04:22 +0800 Subject: [PATCH] upgrade dependency due to potential vulnerabilities --- README.md | 2 +- pom.xml | 6 +++--- script/install | 2 +- src/com/amastigote/unstamper/Main.java | 2 +- src/com/amastigote/unstamper/core/Processor.java | 2 +- .../amastigote/unstamper/core/TextStampRecognizer.java | 2 +- src/com/amastigote/unstamper/io/IOHandler.java | 2 +- src/com/amastigote/unstamper/log/GeneralLogger.java | 8 ++++---- src/com/amastigote/unstamper/util/OptionManager.java | 2 +- src/com/amastigote/unstamper/util/TaskRunner.java | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index a1782c7..3bdde77 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # pdf-unstamper ![](https://img.shields.io/badge/Powered%20by-Apache%20PDFBox-blue.svg?style=flat-square) -Remove text stamps of **any font**, **any encoding** and **any language** with pdf-unstamper now! +Remove textual watermark of **any font**, **any encoding** and **any language** with pdf-unstamper now! ## Effect diff --git a/pom.xml b/pom.xml index 40487a4..1ad14eb 100644 --- a/pom.xml +++ b/pom.xml @@ -6,8 +6,8 @@ 4.0.0com.amastigoteunstamper - 0.1.4 - Text stamp remover for PDF files. + 0.1.5 + Textual watermark remover for PDF files.pdf-unstamperhttps://github.com/hwding/pdf-unstamper @@ -27,7 +27,7 @@ org.apache.pdfbox pdfbox - 2.0.8 + 2.0.12 diff --git a/script/install b/script/install index 5a8878b..16e40a9 100755 --- a/script/install +++ b/script/install @@ -8,7 +8,7 @@ user_bin=`echo ~`"/bin/" locl_bin="/usr/local/bin/" jar_name="pdf-unstamper.jar" exe_name="unstamp" -_version="0.1.4" +_version="0.1.5" jar_durl="https://github.com/hwding/pdf-unstamper/releases/download/$_version/$jar_name" wrapper="#!/bin/bash\njava -jar ${user_bin}${jar_name} \"\$@\"\n" diff --git a/src/com/amastigote/unstamper/Main.java b/src/com/amastigote/unstamper/Main.java index 0d7cef8..be066bc 100644 --- a/src/com/amastigote/unstamper/Main.java +++ b/src/com/amastigote/unstamper/Main.java @@ -1,7 +1,7 @@ /* AUTH | hwding DATE | Sep 10 2017 - DESC | text stamp remover for PDF files + DESC | textual watermark remover for PDF files MAIL | m@amastigote.com GITH | github.com/hwding */ diff --git a/src/com/amastigote/unstamper/core/Processor.java b/src/com/amastigote/unstamper/core/Processor.java index 7527dd1..00fb802 100644 --- a/src/com/amastigote/unstamper/core/Processor.java +++ b/src/com/amastigote/unstamper/core/Processor.java @@ -1,7 +1,7 @@ /* AUTH | hwding DATE | Jan 06 2018 - DESC | text stamp remover for PDF files + DESC | textual watermark remover for PDF files MAIL | m@amastigote.com GITH | github.com/hwding */ diff --git a/src/com/amastigote/unstamper/core/TextStampRecognizer.java b/src/com/amastigote/unstamper/core/TextStampRecognizer.java index a7dd2ad..fb1f122 100644 --- a/src/com/amastigote/unstamper/core/TextStampRecognizer.java +++ b/src/com/amastigote/unstamper/core/TextStampRecognizer.java @@ -1,7 +1,7 @@ /* AUTH | hwding DATE | Sep 10 2017 - DESC | text stamp remover for PDF files + DESC | textual watermark remover for PDF files MAIL | m@amastigote.com GITH | github.com/hwding */ diff --git a/src/com/amastigote/unstamper/io/IOHandler.java b/src/com/amastigote/unstamper/io/IOHandler.java index e60ddf9..99af985 100644 --- a/src/com/amastigote/unstamper/io/IOHandler.java +++ b/src/com/amastigote/unstamper/io/IOHandler.java @@ -1,7 +1,7 @@ /* AUTH | hwding DATE | Sep 05 2017 - DESC | text stamp remover for PDF files + DESC | textual watermark remover for PDF files MAIL | m@amastigote.com GITH | github.com/hwding */ diff --git a/src/com/amastigote/unstamper/log/GeneralLogger.java b/src/com/amastigote/unstamper/log/GeneralLogger.java index dc8c3d8..cfe5b3d 100644 --- a/src/com/amastigote/unstamper/log/GeneralLogger.java +++ b/src/com/amastigote/unstamper/log/GeneralLogger.java @@ -1,7 +1,7 @@ /* AUTH | hwding - DATE | Jan 06 2018 - DESC | text stamp remover for PDF files + DATE | Oct 23 2018 + DESC | textual watermark remover for PDF files MAIL | m@amastigote.com GITH | github.com/hwding */ @@ -12,7 +12,7 @@ public class GeneralLogger { public static class Help { private static final String usage = - "\nPDF-UnStamper ver. 0.1.4 by hwding@GitHub\n" + + "\nPDF-UnStamper ver. 0.1.5 by hwding@GitHub\n" + "\nUsage:" + "\n [OPTION] -i [INPUT PDF] -k [KEYWORDS...] (-o [OUTPUT PDF])" + "\n [OPTION] -I [INPUT DIR] -k [KEYWORDS...] (-O [OUTPUT DIR])\n" + @@ -20,7 +20,7 @@ public static class Help { "\n -d, --directly directly modify the input file(s), option o/O is\n" + " unnecessary when this option is on" + "\n -r, --recursive process files in the given dir recursively" + - "\n -s, --strict use strict mode, a text area is considered as water mark\n" + + "\n -s, --strict use strict mode, a text area is considered as watermark\n" + " only if its content strictly equals one of the keywords\n"; public static void print() { diff --git a/src/com/amastigote/unstamper/util/OptionManager.java b/src/com/amastigote/unstamper/util/OptionManager.java index e47208e..d090ac4 100644 --- a/src/com/amastigote/unstamper/util/OptionManager.java +++ b/src/com/amastigote/unstamper/util/OptionManager.java @@ -1,7 +1,7 @@ /* AUTH | hwding DATE | Sep 10 2017 - DESC | text stamp remover for PDF files + DESC | textual watermark remover for PDF files MAIL | m@amastigote.com GITH | github.com/hwding */ diff --git a/src/com/amastigote/unstamper/util/TaskRunner.java b/src/com/amastigote/unstamper/util/TaskRunner.java index f744b28..144f785 100644 --- a/src/com/amastigote/unstamper/util/TaskRunner.java +++ b/src/com/amastigote/unstamper/util/TaskRunner.java @@ -1,7 +1,7 @@ /* AUTH | hwding DATE | Sep 10 2017 - DESC | text stamp remover for PDF files + DESC | textual watermark remover for PDF files MAIL | m@amastigote.com GITH | github.com/hwding */