File tree Expand file tree Collapse file tree 4 files changed +6
-15
lines changed
src/com/amastigote/unstamper Expand file tree Collapse file tree 4 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ user_bin=`echo ~`"/bin/"
88locl_bin=" /usr/local/bin/"
99jar_name=" pdf-unstamper.jar"
1010exe_name=" unstamp"
11- _version=" 0.1.3 "
11+ _version=" 0.1.4 "
1212jar_durl=" https://github.com/hwding/pdf-unstamper/releases/download/$_version /$jar_name "
1313wrapper=" #!/bin/bash\njava -jar ${user_bin}${jar_name} \"\$ @\" \n"
1414
Original file line number Diff line number Diff line change 11/*
22 AUTH | hwding
3- DATE | Sep 10 2017
3+ DATE | Jan 06 2018
44 DESC | text stamp remover for PDF files
5566 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 }
Original file line number Diff line number Diff line change 11/*
22 AUTH | hwding
3- DATE | Sep 10 2017
3+ DATE | Jan 06 2018
44 DESC | text stamp remover for PDF files
5566 GITH | github.com/hwding
1212public class GeneralLogger {
1313 public static class Help {
1414 private static final String usage =
15- "\n PDF-UnStamper ver. 0.1.3 by hwding@GitHub\n " +
15+ "\n PDF-UnStamper ver. 0.1.4 by hwding@GitHub\n " +
1616 "\n Usage:" +
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}
You can’t perform that action at this time.
0 commit comments