/pdf-unstamper

Text stamp remover for PDF files.

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

pdf-unstamper

Text stamp remover for PDF files.

Powered by Apache PDFBox®.

Effect

Before After

Download

Download JAR.

Help

Usage: 
   [OPTION] -i [INPUT PDF] -k [KEYWORDS] (-o [OUTPUT PDF])
   [OPTION] -I [INPUT DIR] -k [KEYWORDS] (-O [OUTPUT DIR])

Options:
   -d,  --directly          directly modify the input file(s), which makes option o/O unnecessary
   -t,  --cut-tail          remove the last element of each page, which makes option w optional
   -r,  --recursive         process files in the given dir recursively

Example

# For single file processing
➜ java -jar pdf-unstamper.jar -i PythonRequestsEssentials.pdf -o PythonRequestsEssentials.unstamped.pdf -k www.allitebooks.com
# Or
➜ java -jar pdf-unstamper.jar -i PythonRequestsEssentials.pdf -d -k www.allitebooks.com

# For massive files processing
➜ java -jar pdf-unstamper.jar -I pdfs/ -O unstampedPdfs/ -r -k www.allitebooks.com
# Or
➜ java -jar pdf-unstamper.jar -I pdfs/ -d -r -k www.allitebooks.com

# For ituring.com.cn or other circumstances
➜ java -jar pdf-unstamper.jar -i Ruby.pdf -d -t

Structure

unstamper
├── core
│   └── Processor.java
├── io
│   └── IOHandler.java
├── log
│   └── GeneralLogger.java
├── Main.java
└── util
    ├── OptionManager.java
    └── TaskRunner.java