Created
September 25, 2024 05:39
-
-
Save saravr/f990766b5148ed3916b06085ec14d572 to your computer and use it in GitHub Desktop.
Add watermark to PDF files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# usage: watermark.sh <pdf file name without extension> | |
# | |
magick $1.pdf \ | |
-gravity Center \ | |
-pointsize 40 \ | |
-fill 'rgba(169, 169, 169, 0.5)' \ | |
-draw "rotate -45 text 0,0 'SAMPLE WATERMARK'" \ | |
-alpha on -background none -compose over \ | |
$1-WM.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment