pdftron::PDF::Convert::Printer Class Reference

Convert::Printer is a utility class to install the a printer for print-based conversion of documents for Convert::ToPdf. More...

#include <Convert.h>

List of all members.

Static Public Member Functions

static void Install (const UString &in_printerName="PDFTron PDFNet")
 Install the PDFNet printer.
static void Uninstall ()
 Uninstall all printers using the PDFNet printer driver.
static const UString GetPrinterName ()
 Get the name of the PDFNet printer installed in this process session.
static void SetPrinterName (const UString &in_printerName="PDFTron PDFNet")
 Set the name of the PDFNet printer installed in this process session.
static bool IsInstalled (const UString &in_printerName="PDFTron PDFNet")
 Determine if the PDFNet printer is installed.


Detailed Description

Convert::Printer is a utility class to install the a printer for print-based conversion of documents for Convert::ToPdf.

Member Function Documentation

static void pdftron::PDF::Convert::Printer::Install ( const UString in_printerName = "PDFTron PDFNet"  )  [static]

Install the PDFNet printer.

Installation can take a few seconds, so it is recommended that you install the printer once as part of your deployment process. Duplicated installations will be quick since the presence of the printer is checked before installation is attempted. There is no need to uninstall the printer after conversions, it can be left installed for later access.

Parameters:
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.
Note:
Installing and uninstalling printer drivers requires the process to be running as administrator.

static void pdftron::PDF::Convert::Printer::Uninstall (  )  [static]

Uninstall all printers using the PDFNet printer driver.

Note:
Installing and uninstalling printer drivers requires the process to be running as administrator.

static const UString pdftron::PDF::Convert::Printer::GetPrinterName (  )  [static]

Get the name of the PDFNet printer installed in this process session.

Returns:
the Unicode name of the PDFNet printer
Note:
if no printer was installed in this process then the predefined string "PDFTron PDFNet" will be returned.

static void pdftron::PDF::Convert::Printer::SetPrinterName ( const UString in_printerName = "PDFTron PDFNet"  )  [static]

Set the name of the PDFNet printer installed in this process session.

Returns:
the Unicode name of the PDFNet printer
Note:
if no printer was installed in this process then the predefined string "PDFTron PDFNet" will be used.

static bool pdftron::PDF::Convert::Printer::IsInstalled ( const UString in_printerName = "PDFTron PDFNet"  )  [static]

Determine if the PDFNet printer is installed.

Parameters:
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.
Returns:
true if the named printer is installed, false otherwise
Note:
may or may not check if the printer with the given name is actually a PDFNet printer.


© 2002-2010 PDFTron Systems Inc.