Class RubberStampWithImage


  • public class RubberStampWithImage
    extends java.lang.Object
    This is an example on how to add a rubber stamp annotation with an image to pages of a PDF document. To add a normal image, use the AddImageToPDF.java example.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doIt​(java.lang.String[] args)
      Add a rubber stamp with an jpg image to every page of the given document.
      static void main​(java.lang.String[] args)
      This creates an instance of RubberStampWithImage.
      • Methods inherited from class java.lang.Object

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

      • RubberStampWithImage

        public RubberStampWithImage()
    • Method Detail

      • doIt

        public void doIt​(java.lang.String[] args)
                  throws java.io.IOException
        Add a rubber stamp with an jpg image to every page of the given document.
        Parameters:
        args - the command line arguments
        Throws:
        java.io.IOException - an exception is thrown if something went wrong
      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        This creates an instance of RubberStampWithImage.
        Parameters:
        args - The command line arguments.
        Throws:
        java.io.IOException - If there is an error parsing the document.