Script for bulk stamping stamp image on multi-page PDF file.
NOTE: I don't guarantee anything. Also, DON'T USE it for important documents.
-
Bulk stamping to multi-page PDF file.
-
Apply noise to the output
-
Apply grayscale to the output
-
Angle staggered when stamping each page
-
Duplicate the PDF file (e.g.
source.pdf
) you want to stamp, tostamp.pdf
. -
Open the duplicated file (
stamp.pdf
) on PDF editing software (e.g. Inkscape). -
Paste the stamp image (recommends transparent PNG) to the place you want to stamp.
-
Delete the objects other than the stamp image.
Now, the background of the PDF file should be white. Also, there is only the stamp image. -
Overwrite save the PDF file. This completes the stamp PDF file.
Requirements: Docker
Print help:
$ sudo docker run -it mugifly/pdf-bulk-stamper stamper.sh
Example command:
$ sudo docker run -it -v $(pwd):/stamper/ mugifly/pdf-bulk-stamper stamper.sh --noise 1 --grayscale --staggered source.pdf stamp.pdf output.pdf
Please execute the above command, in the directory containing the source.pdf
and stamp.pdf
.
Requirements: Bash, Image Magick (convert
command), PDFtk (pdftk
command)
Print help:
$ bash stamper.sh
Example command:
$ bash stamper.sh --noise 1 --grayscale --staggered source.pdf stamp.pdf outout.pdf