Class RubberStampWithImage

java.lang.Object
org.apache.pdfbox.examples.pdmodel.RubberStampWithImage

public class RubberStampWithImage extends 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.
  • Constructor Details

    • RubberStampWithImage

      public RubberStampWithImage()
  • Method Details

    • doIt

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

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