Class AddWatermarkText


  • public class AddWatermarkText
    extends java.lang.Object
    Add a diagonal watermark text to each page of a PDF.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private AddWatermarkText()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void addWatermarkText​(PDDocument doc, PDPage page, PDFont font, java.lang.String text)  
      static void main​(java.lang.String[] args)  
      private static void usage()
      This will print the usage.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AddWatermarkText

        private AddWatermarkText()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • addWatermarkText

        private static void addWatermarkText​(PDDocument doc,
                                             PDPage page,
                                             PDFont font,
                                             java.lang.String text)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • usage

        private static void usage()
        This will print the usage.