Watermark on PDFs

Scope

This microservice adds a watermark to the content file of a given document object and saves it as a new object version.

Description

The microservice does the following:

  • Listens to the message queue to see whether a message with the value documentchanged has arrived
  • Checks a specific document type to see whether the watermark flag (Boolean) is set
  • If the flag is not set, a CMD command calls the external program pdftk. This program temporarily downloads the content, inserts the watermark into the PDF and then saves the content as a new object version.

A config file consists of control parameters which:

  • determine the object types and index data to be checked
  • determine the CMD call for setting stamping tools other than pdftk

Contact

Marco Schütt (m.schuett[at]optimal-systems.de)