Package org.apache.pdfbox.tools
Class OverlayPDF
- java.lang.Object
-
- org.apache.pdfbox.tools.OverlayPDF
-
public final class OverlayPDF extends java.lang.ObjectAdds 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.StringEVENprivate static java.lang.StringFIRSTprivate static java.lang.StringLASTprivate static org.apache.commons.logging.LogLOGprivate static java.lang.StringODDprivate static java.lang.StringPAGEprivate static java.lang.StringPOSITIONprivate static java.lang.StringUSEALLPAGES
-
Constructor Summary
Constructors Modifier Constructor Description privateOverlayPDF()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static booleanisInteger(java.lang.String str)static voidmain(java.lang.String[] args)This will overlay a document and write out the results.private static voidusage()
-
-
-
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.IOExceptionThis 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)
-
-