5#ifndef PDFTRON_H_CPPPDFPrint
6#define PDFTRON_H_CPPPDFPrint
9#include <C/PDF/TRN_Print.h>
52 const UString & in_outputFileName,
53 PageSet * in_pagesToPrint = NULL,
55 volatile bool * in_cancel = NULL,
83 const char * in_printerName,
84 const char * in_jobName,
85 const char * in_outputFileName,
86 PageSet * in_pagesToPrint = NULL,
88 volatile bool * in_cancel = NULL,
475#include <Impl/Print.inl>
static void StartPrintJob(PDFDoc &in_pdfdoc, const char *in_printerName, const char *in_jobName, const char *in_outputFileName, PageSet *in_pagesToPrint=NULL, PrinterMode *in_printerMode=NULL, volatile bool *in_cancel=NULL, OCG::Context *in_context=NULL)
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)
void SetPaperSize(pdftron::PDF::PrinterMode::PaperSize paperSize)
@ e_prc_envelop_1_rotated
@ e_japanese_envelope_chou_3_rotated
@ e_japanese_envelope_you_4
@ e_japanese_double_postcard
@ e_japanese_envelope_you_4_rotated
@ e_double_japanese_postcard_rotated
@ e_prc_envelop_10_rotated
@ e_japanese_envelope_kaku_3
@ e_japanese_envelope_kaku_2_rotated
@ e_prc_envelop_5_rotated
@ e_prc_envelop_6_rotated
@ e_japanese_envelope_kaku_2
@ e_japanese_postcard_rotated
@ e_japanese_envelope_chou_4_rotated
@ e_prc_envelop_2_rotated
@ e_japanese_envelope_chou_3
@ e_6_3_quarters_envelope
@ e_prc_envelop_7_rotated
@ e_prc_envelop_8_rotated
@ e_japanese_envelope_kaku_3_rotated
@ e_prc_envelop_4_rotated
@ e_japanese_envelope_chou_4
@ e_prc_envelop_9_rotated
@ e_letter_extra_transverse
@ e_prc_envelop_3_rotated
ScaleType
Enumerated values for specifying the scaling of document pages.
@ e_ScaleType_ReduceToOutputPage
shrink to fit the output page
@ e_ScaleType_FitToOutputPage
fit to the output page
@ e_ScaleType_None
no scaling
void SetPaperSize(const Rect &size=Rect(0, 0, 612, 791))
void SetUseRleImageCompression(bool useRleImageCompression)
void SetOutputAnnot(PrintContentTypes printContent)
Orientation
Enumerated values for specifying the orientation of output pages.
@ e_Orientation_Portrait
taller than wide
@ e_Orientation_Landscape
wider than tall
void SetScale(double scale)
void SetScaleType(ScaleType scaleType)
void SetDuplexing(DuplexMode mode)
DuplexMode
Enumerated values for specifying how the printed pages are flipped when duplexing.
@ e_Duplex_ShortSide
flip the paper along the short side
@ e_Duplex_None
single-sided printing
@ e_Duplex_LongSide
flip the paper along the long side
@ e_Duplex_Auto
use the current printer setting
void SetOutputColor(OutputColor color)
void SetCopyCount(int copyCount)
void SetAutoRotate(bool autoRotate)
OutputQuality
Enumerated values for specifying the quality of the printing.
@ e_OutputQuality_Medium
printer medium quality mode
@ e_OutputQuality_High
printer high quality mode
@ e_OutputQuality_Low
printer low quality mode
@ e_OutputQuality_Draft
printer draft mode
void SetCollation(bool collation)
@ e_NUp_3_2
3 by 2 document pages to 1 output page
@ e_NUp_2_1
2 document pages to 1 output page
@ e_NUp_3_3
3 by 3 document pages to 1 output page
@ e_NUp_2_2
2 by 2 document pages to 1 output page
@ e_NUp_4_4
4 by 4 document pages to 1 output page
@ e_NUp_1_1
1 document page to 1 output page
void SetOrientation(Orientation orientation)
void SetOutputQuality(OutputQuality quality)
OutputColor
Enumerated values for specifying the color mode for printing.
@ e_OutputColor_Grayscale
8bpp
@ e_OutputColor_Color
24bpp
@ e_OutputColor_Monochrome
single color (1bpp)
void SetAutoCenter(bool autoCenter)
@ e_PageOrder_RightToLeftThenTopToBottom
@ e_PageOrder_BottomToTopThenLeftToRight
@ e_PageOrder_TopToBottomThenLeftToRight
@ e_PageOrder_LeftToRightThenTopToBottom
void SetNUp(unsigned int x, unsigned int y, NUpPageOrder pageOrder=e_PageOrder_LeftToRightThenTopToBottom)
void SetNUp(NUp nup, NUpPageOrder pageOrder=e_PageOrder_LeftToRightThenTopToBottom)
void SetOutputPageBorder(bool printBorder)
PrintContentTypes
Enumerated values for specifying the document content to print.
@ e_PrintContent_DocumentOnly
@ e_PrintContent_DocumentAnnotationsAndComments
@ e_PrintContent_DocumentAndAnnotations