'Postscript PPD Watermark on every page

I am trying to print a watermark on every printed page with the help of a custom PPD for a printer. I believe (please correct me if I'm wrong) that I will need to call the script that adds the watermarks inside the ppd with a like similar to this what I found online:

cupsFilter: "application/vnd.cups-postscript 100 /usr/lib/cups/filter/watermark"

How would the watermark filter need to look like? I could not find any examples for that. Is it possible to incorporate a postscript file as watermark? How is the watermark added to the printed document?

Thank you very much in advance!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source