Class RubberStampWithImage
- java.lang.Object
-
- org.apache.pdfbox.examples.pdmodel.RubberStampWithImage
-
public class RubberStampWithImage extends java.lang.ObjectThis 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 Summary
Constructors Constructor Description RubberStampWithImage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoIt(java.lang.String[] args)Add a rubber stamp with an jpg image to every page of the given document.static voidmain(java.lang.String[] args)This creates an instance of RubberStampWithImage.
-
-
-
Method Detail
-
doIt
public void doIt(java.lang.String[] args) throws java.io.IOExceptionAdd 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.IOExceptionThis creates an instance of RubberStampWithImage.- Parameters:
args- The command line arguments.- Throws:
java.io.IOException- If there is an error parsing the document.
-
-