Watermarking PDF documents dynamically
In this case, the ZXTM Traffic Manager will run a Java Extension to process all outgoing PDF documents from the web sites it is managing. The Java Extension can be easily configured to watermark each download with a custom message, including details such as the IP address, time of day and authentication credentials (if available) of the client.
Installing the Java ExtensionDownload the PDF Watermark Java class file, along with the following three third-party Java libraries:
Upload the PdfWatermark.class class file and the three jar files to your Java Extensions catalog. The class file will be treated as a Java Extension, and the catalog will treat the jar files as libraries:
Note that the third party libraries require JRE version 6; this extension will not function when the ZXTM system has JRE 5. Compiling the Java Extension (optional)If you prefer, you can compile the Java Extension from the source file: PdfWatermark.java. Compiling a Java Extension can be quite involved; for detailed instructions, refer to the Image Watermarking article. The compilation will need to be linked against the iText jar file (as well as the zxtm-servlet and servlet jar files); the other jar files are dependencies of iText to encrypt and seal the PDF document, and are only needed at runtime. Using the Java ExtensionTo use the PdfWatermark Java Extension, you will need to invoke it from a TrafficScript™ response rule and pass it a list of commands to write the watermark text on every page of the PDF document. The Java Extension will 'seal' the PDF once it has been processed, setting the encryption parameters so that it cannot be modified (preventing users from removing the watermark). Here is a simple TrafficScript response rule that writes a basic watermark on any PDF document it processes:
When a user downloads a PDF file from your website, it will be watermarked as follows:
Advanced use of the Java ExtensionThis Java Extension takes a list of commands to control how and where it applies the watermark text:
Here's a more sophisticated example that illustrates many of the commands above:
This watermarks a document rather like this:
Further ReadingComments:This public messageboard is not a forum for technical support. To report technical support problems, please contact our dedicated Support team using the instructions at the bottom of this page.
Comment from:
Douglas Spooner [Visitor]
Just curious rather than a watermark would it be possible to add some information as a header/footer to the PDF?
Comment from:
pessi [Member]
For static pdf watermarking, you can use this wonderful tool. Hope it is useful to a lot of people.
http://watermark-images.com/pdf-watermark.aspx |
Recently...
Other Resources
|

Content protection is a key concern for many online services, and watermarking downloaded documents with a unique ID is one way to discourage and track unauthorized sharing. This article describes how to use ZXTM to uniquely watermark every PDF document served from a web site with the details of each client.








