Package org.apache.pdfbox.tools
Class PDFSplit
- java.lang.Object
-
- org.apache.pdfbox.tools.PDFSplit
-
public final class PDFSplit extends java.lang.Object
This 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.String
END_PAGE
private static java.lang.String
OUTPUT_PREFIX
private static java.lang.String
PASSWORD
private static java.lang.String
SPLIT
private static java.lang.String
START_PAGE
-
Constructor Summary
Constructors Modifier Constructor Description private
PDFSplit()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
Infamous main method.private void
split(java.lang.String[] args)
private static void
usage()
This will print the usage requirements and exit.private static void
writeDocument(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.IOException
Infamous 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.
-
-