public class ConvertPrinter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
e_convert_printer_auto
By default PDFNet will pick the best means of converting the target document.
|
static int |
e_convert_printer_interop_only
For Office file conversions, force COM Interop to be used, regardless if this virtual printer is installed or not.
|
static int |
e_convert_printer_prefer_builtin_converter
For Office file conversions, use the built in converter if it is available for the converted file type.
|
static int |
e_convert_printer_printer_only
For Office file conversions, do not check for Office COM Interop availability, and use the printer path instead.
|
Constructor and Description |
---|
ConvertPrinter() |
Modifier and Type | Method and Description |
---|---|
static int |
getMode()
Get the current mode for print jobs.
|
static java.lang.String |
getPrinterName()
Get the name of the PDFNet printer installed in this process session.
|
static void |
install()
Install the PDFNet printer with the default name.
|
static void |
install(java.lang.String in_printerName)
Install the PDFNet printer.
|
static boolean |
isInstalled()
Determine if the PDFNet printer is installed with the default name.
|
static boolean |
isInstalled(java.lang.String in_printerName)
Determine if the specified printer is installed.
|
static void |
setMode(int mode)
Configure how PDFNet prints documents.
|
static void |
setPrinterName()
Set the name of the PDFNet printer to be used to the default printer
name "PDFTron PDFNet".
|
static void |
setPrinterName(java.lang.String in_printerName)
Set the name of the PDFNet printer to be used.
|
static void |
uninstall()
Uninstall all printers using the PDFNet printer driver.
|
public static final int e_convert_printer_auto
public static final int e_convert_printer_interop_only
public static final int e_convert_printer_printer_only
public static final int e_convert_printer_prefer_builtin_converter
public static void install(java.lang.String in_printerName) throws PDFNetException
Note: Installing and uninstalling printer drivers requires the process to be running as administrator.
in_printerName
- the name of the printer to install and use for conversions.
If in_printerName is not provided then the name "PDFTron PDFNet" is used.PDFNetException
public static void install() throws PDFNetException
PDFNetException
public static void uninstall() throws PDFNetException
Note: Installing and uninstalling printer drivers requires the process to be running as administrator. Only the "PDFTron PDFNet" printer can be uninstalled with this function.
PDFNetException
public static java.lang.String getPrinterName() throws PDFNetException
Note: if no printer was installed in this process then the predefined string "PDFTron PDFNet" will be returned.
PDFNetException
public static void setPrinterName(java.lang.String in_printerName) throws PDFNetException
in_printerName
- the new printer namePDFNetException
public static void setPrinterName() throws PDFNetException
PDFNetException
public static boolean isInstalled(java.lang.String in_printerName) throws PDFNetException
Note: may or may not check if the printer with the given name is actually a PDFNet printer.
in_printerName
- the name of the printer to install and use for conversions.
If in_printerName is not provided then the name "PDFTron PDFNet" is used.PDFNetException
public static boolean isInstalled() throws PDFNetException
PDFNetException
public static void setMode(int mode) throws PDFNetException
mode
- set the print mode. Default is e_convert_printer_auto.PDFNetException
public static int getMode() throws PDFNetException
PDFNetException