Package org.apache.pdfbox.tools
Class PDFSplit
- java.lang.Object
-
- org.apache.pdfbox.tools.PDFSplit
-
public final class PDFSplit extends java.lang.ObjectThis is the main program that will take a pdf document and split it into a number of other documents.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringEND_PAGEprivate static java.lang.StringOUTPUT_PREFIXprivate static java.lang.StringPASSWORDprivate static java.lang.StringSPLITprivate static java.lang.StringSTART_PAGE
-
Constructor Summary
Constructors Modifier Constructor Description privatePDFSplit()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Infamous main method.private voidsplit(java.lang.String[] args)private static voidusage()This will print the usage requirements and exit.private static voidwriteDocument(PDDocument doc, java.lang.String fileName)
-
-
-
Field Detail
-
PASSWORD
private static final java.lang.String PASSWORD
- See Also:
- Constant Field Values
-
SPLIT
private static final java.lang.String SPLIT
- See Also:
- Constant Field Values
-
START_PAGE
private static final java.lang.String START_PAGE
- See Also:
- Constant Field Values
-
END_PAGE
private static final java.lang.String END_PAGE
- See Also:
- Constant Field Values
-
OUTPUT_PREFIX
private static final java.lang.String OUTPUT_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.io.IOExceptionInfamous main method.- Parameters:
args- Command line arguments, should be one and a reference to a file.- Throws:
java.io.IOException- If there is an error parsing the document.
-
split
private void split(java.lang.String[] args) throws java.io.IOException- Throws:
java.io.IOException
-
writeDocument
private static void writeDocument(PDDocument doc, java.lang.String fileName) throws java.io.IOException
- Throws:
java.io.IOException
-
usage
private static void usage()
This will print the usage requirements and exit.
-
-