Package org.apache.pdfbox.tools
Class PrintPDF
- java.lang.Object
-
- org.apache.pdfbox.tools.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.
-
-
-
Field Detail
-
PASSWORD
private static final java.lang.String PASSWORD
- See Also:
- Constant Field Values
-
SILENT
private static final java.lang.String SILENT
- See Also:
- Constant Field Values
-
PRINTER_NAME
private static final java.lang.String PRINTER_NAME
- See Also:
- Constant Field Values
-
ORIENTATION
private static final java.lang.String ORIENTATION
- See Also:
- Constant Field Values
-
BORDER
private static final java.lang.String BORDER
- See Also:
- Constant Field Values
-
DPI
private static final java.lang.String DPI
- See Also:
- Constant Field Values
-
NOCOLOROPT
private static final java.lang.String NOCOLOROPT
- See Also:
- Constant Field Values
-
-
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()
-
-