Class PDFMerger

java.lang.Object
org.apache.pdfbox.tools.PDFMerger

public final class PDFMerger extends 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 Details

    • PDFMerger

      private PDFMerger()
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Infamous main method.
      Parameters:
      args - Command line arguments, should be at least 3.
      Throws:
      IOException - If there is an error parsing the document.
    • merge

      private void merge(String[] args) throws IOException
      Throws:
      IOException
    • usage

      private static void usage()
      This will print the usage requirements and exit.