Class 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)  
      • Methods inherited from class java.lang.Object

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

      • PDFSplit

        private PDFSplit()
    • 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.