Package org.apache.pdfbox.tools
Class PDFMerger
- java.lang.Object
-
- org.apache.pdfbox.tools.PDFMerger
-
public final class PDFMerger extends java.lang.Object
This is the main program that will take a list of pdf documents and merge them, saving the result in a new document.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
PDFMerger()
-
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
merge(java.lang.String[] args)
private static void
usage()
This will print the usage requirements and exit.
-
-
-
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 at least 3.- Throws:
java.io.IOException
- If there is an error parsing the document.
-
merge
private void merge(java.lang.String[] args) throws java.io.IOException
- Throws:
java.io.IOException
-
usage
private static void usage()
This will print the usage requirements and exit.
-
-