Package org.apache.pdfbox.tools
Class OverlayPDF
- java.lang.Object
-
- org.apache.pdfbox.tools.OverlayPDF
-
public final class OverlayPDF extends java.lang.Object
Adds an overlay to an existing PDF document. Based on code contributed by Balazs Jerk.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
EVEN
private static java.lang.String
FIRST
private static java.lang.String
LAST
private static org.apache.commons.logging.Log
LOG
private static java.lang.String
ODD
private static java.lang.String
PAGE
private static java.lang.String
POSITION
private static java.lang.String
USEALLPAGES
-
Constructor Summary
Constructors Modifier Constructor Description private
OverlayPDF()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static boolean
isInteger(java.lang.String str)
static void
main(java.lang.String[] args)
This will overlay a document and write out the results.private static void
usage()
-
-
-
Field Detail
-
LOG
private static final org.apache.commons.logging.Log LOG
-
POSITION
private static final java.lang.String POSITION
- See Also:
- Constant Field Values
-
ODD
private static final java.lang.String ODD
- See Also:
- Constant Field Values
-
EVEN
private static final java.lang.String EVEN
- See Also:
- Constant Field Values
-
FIRST
private static final java.lang.String FIRST
- See Also:
- Constant Field Values
-
LAST
private static final java.lang.String LAST
- See Also:
- Constant Field Values
-
PAGE
private static final java.lang.String PAGE
- See Also:
- Constant Field Values
-
USEALLPAGES
private static final java.lang.String USEALLPAGES
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.io.IOException
This will overlay a document and write out the results.- Parameters:
args
- command line arguments- Throws:
java.io.IOException
- if something went wrong
-
usage
private static void usage()
-
isInteger
private static boolean isInteger(java.lang.String str)
-
-