Adding watermark to pdfs
I follow the approach of creating a postscript file and using Ghostscript to add it to every page in the pdf.1
For my Obsidian-quartz sync, I use the following postscript file:2
<<
/EndPage
{
2 eq { pop false }
{
gsave
/Helvetica findfont 18 scalefont setfont
newpath
.20 setgray 10 10 moveto
/copyright glyphshow
( Your Name) show
grestore
true
} ifelse
} bind
>> setpagedevice
To use it, I run:
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -o output.pdf watermark.ps input.pdf