Skip to content

Commit 8ddb026

Browse files
committed
remove useless 'done' prompt from logger; bump version to 0.1.4
1 parent f9b59ef commit 8ddb026

File tree

4 files changed

+6
-15
lines changed

4 files changed

+6
-15
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<modelVersion>4.0.0</modelVersion>
77
<groupId>com.amastigote</groupId>
88
<artifactId>unstamper</artifactId>
9-
<version>0.1.3</version>
9+
<version>0.1.4</version>
1010
<description>Text stamp remover for PDF files.</description>
1111
<name>pdf-unstamper</name>
1212
<url>https://github.com/hwding/pdf-unstamper</url>

script/install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ user_bin=`echo ~`"/bin/"
88
locl_bin="/usr/local/bin/"
99
jar_name="pdf-unstamper.jar"
1010
exe_name="unstamp"
11-
_version="0.1.3"
11+
_version="0.1.4"
1212
jar_durl="https://github.com/hwding/pdf-unstamper/releases/download/$_version/$jar_name"
1313
wrapper="#!/bin/bash\njava -jar ${user_bin}${jar_name} \"\$@\"\n"
1414

src/com/amastigote/unstamper/core/Processor.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
AUTH | hwding
3-
DATE | Sep 10 2017
3+
DATE | Jan 06 2018
44
DESC | text stamp remover for PDF files
55
66
GITH | github.com/hwding
@@ -29,7 +29,6 @@ public static void process(
2929
@NotNull File file,
3030
@NotNull String[] strings,
3131
@NotNull boolean useStrict) {
32-
AtomicBoolean processAllOk = new AtomicBoolean(true);
3332
GeneralLogger.Processor.procInProgress(file.getName());
3433

3534
try {
@@ -80,16 +79,12 @@ public static void process(
8079
pdPage.setContents(newContents);
8180
} catch (Exception e) {
8281
GeneralLogger.Processor.errorProcess(file.getName());
83-
processAllOk.set(false);
8482
}
8583
});
8684

8785
/* write back to the file */
8886
pdDocument.save(file);
8987
pdDocument.close();
90-
91-
if (processAllOk.get())
92-
GeneralLogger.Processor.procFinished();
9388
} catch (IOException e) {
9489
GeneralLogger.Processor.errorLoadPdf(file.getName());
9590
}

src/com/amastigote/unstamper/log/GeneralLogger.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
AUTH | hwding
3-
DATE | Sep 10 2017
3+
DATE | Jan 06 2018
44
DESC | text stamp remover for PDF files
55
66
GITH | github.com/hwding
@@ -12,7 +12,7 @@
1212
public class GeneralLogger {
1313
public static class Help {
1414
private static final String usage =
15-
"\nPDF-UnStamper ver. 0.1.3 by hwding@GitHub\n" +
15+
"\nPDF-UnStamper ver. 0.1.4 by hwding@GitHub\n" +
1616
"\nUsage:" +
1717
"\n [OPTION] -i [INPUT PDF] -k [KEYWORDS...] (-o [OUTPUT PDF])" +
1818
"\n [OPTION] -I [INPUT DIR] -k [KEYWORDS...] (-O [OUTPUT DIR])\n" +
@@ -60,11 +60,7 @@ public static void errorProcess(@NotNull String fn) {
6060
}
6161

6262
public static void procInProgress(@NotNull String fn) {
63-
System.out.print(suffix + "Processing PDF file \'" + fn + "\' ...");
64-
}
65-
66-
public static void procFinished() {
67-
System.out.println(" done");
63+
System.out.println(suffix + "Processing PDF file \'" + fn + "\' ...");
6864
}
6965
}
7066
}

0 commit comments

Comments
 (0)