![]() |
#include <Print.h>
Static Public Member Functions | |
static void | StartPrintJob (PDFDoc &in_pdfdoc, const UString &in_printerName, const UString &in_jobName, const UString &in_outputFileName, PrinterMode *in_printerMode=NULL, volatile bool *in_cancel=NULL) |
Print the PDFDoc to a printer. | |
static void | StartPrintJob (PDFDoc &in_pdfdoc, const char *in_printerName, const char *in_jobName, const char *in_outputFileName, PrinterMode *in_printerMode=NULL, volatile bool *in_cancel=NULL) |
Print the PDFDoc to a printer. |
static void pdftron::PDF::Print::StartPrintJob | ( | PDFDoc & | in_pdfdoc, | |
const UString & | in_printerName, | |||
const UString & | in_jobName, | |||
const UString & | in_outputFileName, | |||
PrinterMode * | in_printerMode = NULL , |
|||
volatile bool * | in_cancel = NULL | |||
) | [static] |
Print the PDFDoc to a printer.
Depending on the OS and installed libraries, the PDFDoc will be sent using the GDI or the XPS print path. This function will block until the print job is done at the OS level.
in_pdfdoc | the PDFDoc to be printed | |
in_printerName | the name of the printer to print to | |
in_jobName | the name of the job for print queue monitoring, can be empty. | |
in_outputFileName | if not empty, the name of the output file to save the printout into. This could be a PostScript, PCL, XPS or other file. |
set this to true to cancel the print job.
void. Throws a trn::Common::Exception on failure.
static void pdftron::PDF::Print::StartPrintJob | ( | PDFDoc & | in_pdfdoc, | |
const char * | in_printerName, | |||
const char * | in_jobName, | |||
const char * | in_outputFileName, | |||
PrinterMode * | in_printerMode = NULL , |
|||
volatile bool * | in_cancel = NULL | |||
) | [static] |
Print the PDFDoc to a printer.
Depending on the OS and installed libraries, the PDFDoc will be sent using the GDI or the XPS print path. This function will block until the print job is done at the OS level.
If the printer is grayscale, only grayscale data will be sent.
in_pdfdoc | the PDFDoc to be printed | |
in_printerName | the name of the printer to print to | |
in_jobName | the name of the job for print queue monitoring, can be empty. | |
in_outputFileName | if not empty, the name of the output file to save the printout into. This could be a PostScript, PCL, XPS or other file. |
set this to true to cancel the print job.
void. Throws a trn::Common::Exception on failure.