java.lang.Object
com.lowagie.toolbox.plugins.watermarker.Writer

class Writer extends Object
The concrete class which will write a the watermark on the stamp. It is meant to be used through WatermarkerTool or WatermarkerBuilder.
  • Field Details

    • reader

      private PdfReader reader
    • stamp

      private PdfStamper stamp
    • text

      private String text
    • fontsize

      private int fontsize
    • opacity

      private float opacity
    • color

      private Color color
    • font

      private BaseFont font
  • Constructor Details

  • Method Details

    • withFont

      Writer withFont(BaseFont font)
    • write

      void write() throws IOException, DocumentException
      Does the magic, with all parameters already set and valid. At the end, the PDF file configured through the stamp parameter will be written.
      Throws:
      DocumentException - if the default "Helvetica" font cannot be created
      IOException - if the default "Helvetica" font cannot be created