org.apache.pdfbox
Class OverlayPDF

java.lang.Object
  extended by org.apache.pdfbox.OverlayPDF

public class OverlayPDF
extends java.lang.Object

Adds an overlay to an existing PDF document. Based on code contributed by Balazs Jerk.


Constructor Summary
OverlayPDF()
           
 
Method Summary
static void main(java.lang.String[] args)
          This will overlay a document and write out the results.
 void overlay(java.util.Map<java.lang.Integer,java.lang.String> specificPageOverlayFile)
          This will add overlays to a documents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OverlayPDF

public OverlayPDF()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
This will overlay a document and write out the results.

Parameters:
args - command line arguments
Throws:
java.lang.Exception - if something went wrong
See Also:
#USAGE

overlay

public void overlay(java.util.Map<java.lang.Integer,java.lang.String> specificPageOverlayFile)
             throws java.io.IOException,
                    COSVisitorException
This will add overlays to a documents.

Parameters:
specificPageOverlayFile - map of overlay files for specific pages
Throws:
java.io.IOException - exception
COSVisitorException - exception