Removes watermarks from PDF files.
dstrip
can be run in one of two ways: directly via the JAR, or through Docker.
(Running the dstrip
JAR requires Java 11.)
Download the most recent release JAR from the releases tab. Then, you can run it on a PDF file.
java -jar dstrip.jar /path/to/original-pdf-file.pdf /path/to/processed-pdf-file.pdf
You can run the Docker image for this repository directly, and use bind mounts to make the local PDF files accessible to the Docker container. The Docker image is set up to assume a mount path of /mnt
.
docker run --rm -v /path/to/pdf-dir:/mnt mxxk/dstrip \
original-pdf-file.pdf \
processed-pdf-file.pdf