org.apache.pdfbox.examples.pdmodel
Class RubberStampWithImage

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

public class RubberStampWithImage
extends Object

This is an example on how to add a rubber stamp with an image to pages of a PDF document.

Version:
$Revision: 1.0 $

Constructor Summary
RubberStampWithImage()
           
 
Method Summary
 void doIt(String[] args)
          Add a rubber stamp with an jpg image to every page of the given document.
static void main(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(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 Exception
This creates an instance of RubberStampWithImage.

Parameters:
args - The command line arguments.
Throws:
Exception - If there is an error parsing the document.


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.