public final class PrintPDF
extends java.lang.Object
Modifier and Type | Field and 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 |
Modifier | Constructor and Description |
---|---|
private |
PrintPDF()
private constructor.
|
Modifier and Type | Method and 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.
|
private static final java.lang.String PASSWORD
private static final java.lang.String SILENT
private static final java.lang.String PRINTER_NAME
private static final java.lang.String ORIENTATION
private static final java.lang.String BORDER
private static final java.lang.String DPI
private static final java.lang.String NOCOLOROPT
public static void main(java.lang.String[] args) throws java.awt.print.PrinterException, java.io.IOException
args
- Command line arguments, should be one and a reference to a file.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.private static void usage()
private static void showAvailablePrinters()