Class PDFMerger

  • All Implemented Interfaces:
    java.util.concurrent.Callable<java.lang.Integer>

    public final class PDFMerger
    extends java.lang.Object
    implements java.util.concurrent.Callable<java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File[] infiles  
      private java.io.File outfile  
      private java.io.PrintStream SYSERR  
    • Constructor Summary

      Constructors 
      Constructor Description
      PDFMerger()
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer call()  
      static void main​(java.lang.String[] args)
      Infamous main method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SYSERR

        private final java.io.PrintStream SYSERR
      • infiles

        private java.io.File[] infiles
      • outfile

        private java.io.File outfile
    • Constructor Detail

      • PDFMerger

        public PDFMerger()
        Constructor.
    • Method Detail

      • main

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

        public java.lang.Integer call()
        Specified by:
        call in interface java.util.concurrent.Callable<java.lang.Integer>