These PDF Tools are free software developed using Apache PDFBox.

1. PDFcontentEraser

PDFcontentEraser.zip

To erase all characters from a PDF file (input.pdf), try:

$ java -jar PDFcontentEraser.jar -i input.pdf -c

To erase all elements except characters from a PDF file (input.pdf), try:

$ java -jar PDFcontentEraser.jar -i input.pdf -p -g -h

2. PDFcontentExtracter

PDFcontentExtracter.zip