Class PDFMerger

java.lang.Object
org.apache.pdfbox.tools.PDFMerger
All Implemented Interfaces:
Callable<Integer>

public final class PDFMerger extends Object implements Callable<Integer>
This is the main program that will take a list of pdf documents and merge them, saving the result in a new document.
  • Field Details

    • SYSERR

      private final PrintStream SYSERR
    • infiles

      private File[] infiles
    • outfile

      private File outfile
  • Constructor Details

    • PDFMerger

      public PDFMerger()
      Constructor.
  • Method Details

    • main

      public static void main(String[] args)
      Infamous main method.
      Parameters:
      args - Command line arguments, should be at least 3.
    • call

      public Integer call()
      Specified by:
      call in interface Callable<Integer>