5 #ifndef PDFTRON_H_CPPPDFPrint
6 #define PDFTRON_H_CPPPDFPrint
9 #include <C/PDF/TRN_Print.h>
53 const UString & in_outputFileName,
54 PageSet * in_pagesToPrint = NULL,
56 volatile bool * in_cancel = NULL,
84 const char * in_printerName,
85 const char * in_jobName,
86 const char * in_outputFileName,
87 PageSet * in_pagesToPrint = NULL,
89 volatile bool * in_cancel = NULL,
123 const UString& in_outputFileName,
124 const std::vector<UChar>& in_devmode_data,
125 PageSet* in_pagesToPrint = NULL,
127 volatile bool* in_cancel = NULL,
160 const char* in_printerName,
161 const char* in_jobName,
162 const char* in_outputFileName,
163 const std::vector<UChar>& in_devmode_data,
164 PageSet* in_pagesToPrint = NULL,
166 volatile bool* in_cancel = NULL,
563 #include <Impl/Print.inl>
565 #endif // PDFTRON_H_CPPPDFPrint
void SetNUp(NUp nup, NUpPageOrder pageOrder=e_PageOrder_LeftToRightThenTopToBottom)
void SetOrientation(Orientation orientation)
use the current printer setting
1 document page to 1 output page
void SetOutputColor(OutputColor color)
void SetCollation(bool collation)
2 by 2 document pages to 1 output page
void SetOutputAnnot(PrintContentTypes printContent)
void SetAutoRotate(bool autoRotate)
void SetPaperSize(const Rect &size=Rect(0, 0, 612, 791))
printer high quality mode
Orientation
Enumerated values for specifying the orientation of output pages.
DuplexMode
Enumerated values for specifying how the printed pages are flipped when duplexing.
ScaleType
Enumerated values for specifying the scaling of document pages.
use the current printer setting
void SetScale(double scale)
void SetDuplexing(DuplexMode mode)
use the current printer setting
shrink to fit the output page
printer medium quality mode
use the current printer setting
void SetOutputPageBorder(bool printBorder)
use the current printer setting
void SetUseRleImageCompression(bool useRleImageCompression)
void SetScaleType(ScaleType scaleType)
3 by 3 document pages to 1 output page
3 by 2 document pages to 1 output page
flip the paper along the short side
custom layout (use x and y)
void SetOutputQuality(OutputQuality quality)
void SetAutoCenter(bool autoCenter)
void SetCopyCount(int copyCount)
static void StartPrintJob(PDFDoc &in_pdfdoc, const UString &in_printerName, const UString &in_jobName, const UString &in_outputFileName, PageSet *in_pagesToPrint=NULL, PrinterMode *in_printerMode=NULL, volatile bool *in_cancel=NULL, OCG::Context *in_context=NULL)
PrintContentTypes
Enumerated values for specifying the document content to print.
use the current printer setting
OutputQuality
Enumerated values for specifying the quality of the printing.
2 document pages to 1 output page
use Dots Per Inch (DPI) to specify quality
OutputColor
Enumerated values for specifying the color mode for printing.
flip the paper along the long side
use the current printer setting
4 by 4 document pages to 1 output page
use the current printer setting