Class PrintPDF


  • public final class PrintPDF
    extends java.lang.Object
    This is a command line program that will print a PDF document.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String BORDER  
      private static java.lang.String DPI  
      private static java.lang.String NOCOLOROPT  
      private static java.lang.String ORIENTATION  
      private static java.lang.String PASSWORD  
      private static java.lang.String PRINTER_NAME  
      private static java.lang.String SILENT  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private PrintPDF()
      private constructor.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Infamous main method.
      private static void showAvailablePrinters()  
      private static void usage()
      This will print the usage requirements and exit.
      • Methods inherited from class java.lang.Object

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

      • PrintPDF

        private PrintPDF()
        private constructor.
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.awt.print.PrinterException,
                                java.io.IOException
        Infamous main method.
        Parameters:
        args - Command line arguments, should be one and a reference to a file.
        Throws:
        java.awt.print.PrinterException - if the specified service cannot support the Pageable and Printable interfaces.
        java.io.IOException - if there is an error parsing the file.
      • usage

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

        private static void showAvailablePrinters()