pdftron.PDF
Class PrinterMode

java.lang.Object
  extended by pdftron.PDF.PrinterMode

public class PrinterMode
extends java.lang.Object

PrinterMode is a utility class used to set printer options for printing PDF documents.


Field Summary
static int e_10x11
           
static int e_10x14
           
static int e_11x17
           
static int e_12x11
           
static int e_15x11
           
static int e_6_3_Quarters_Envelope
           
static int e_9x11
           
static int e_A2
           
static int e_A3
           
static int e_A3_Extra
           
static int e_A3_Extra_Transverse
           
static int e_A3_Rotated
           
static int e_A3_Transverse
           
static int e_A4
           
static int e_A4_Extra
           
static int e_A4_Plus
           
static int e_A4_Rotated
           
static int e_A4_Small
           
static int e_A4_Transverse
           
static int e_A5
           
static int e_A5_Extra
           
static int e_A5_Rotated
           
static int e_A5_Transverse
           
static int e_A6
           
static int e_A6_Rotated
           
static int e_B4_ISO
           
static int e_B4_JIS
           
static int e_B4_JIS_Rotated
           
static int e_B5_ISO_Extra
           
static int e_B5_JIS
           
static int e_B5_JIS_Rotated
           
static int e_B5_JIS_Transverse
           
static int e_B6_JIS
           
static int e_B6_JIS_Rotated
           
static int e_C_Size_Sheet
           
static int e_Custom
           
static int e_D_Size_Sheet
           
static int e_Double_Japanese_Postcard_Rotated
           
static int e_Duplex_Auto
          The Constant e_Duplex_Auto.
static int e_Duplex_LongSide
          The Constant e_Duplex_LongSide.
static int e_Duplex_None
          The Constant e_Duplex_None.
static int e_Duplex_ShortSide
          The Constant e_Duplex_ShortSide.
static int e_E_Size_Sheet
           
static int e_Envelope_10
           
static int e_Envelope_11
           
static int e_Envelope_12
           
static int e_Envelope_14
           
static int e_Envelope_9
           
static int e_Envelope_B4
           
static int e_Envelope_B5
           
static int e_Envelope_B6
           
static int e_Envelope_C3
           
static int e_Envelope_C4
           
static int e_Envelope_C5
           
static int e_Envelope_C6
           
static int e_Envelope_C65
           
static int e_Envelope_DL
           
static int e_Envelope_Invite
           
static int e_Envelope_Italy
           
static int e_Envelope_Monarch
           
static int e_Executive
           
static int e_Folio
           
static int e_German_Legal_Fanfold
           
static int e_German_Std_Fanfold
           
static int e_Japanese_Double_Postcard
           
static int e_Japanese_Envelope_chou_3
           
static int e_Japanese_Envelope_chou_3_Rotated
           
static int e_Japanese_Envelope_chou_4
           
static int e_Japanese_Envelope_chou_4_Rotated
           
static int e_Japanese_Envelope_Kaku_2
           
static int e_Japanese_Envelope_Kaku_2_Rotated
           
static int e_Japanese_Envelope_Kaku_3
           
static int e_Japanese_Envelope_Kaku_3_Rotated
           
static int e_Japanese_Envelope_You_4
           
static int e_Japanese_Envelope_You_4_Rotated
           
static int e_Japanese_Postcard
           
static int e_Japanese_Postcard_Rotated
           
static int e_Ledger
           
static int e_Legal
           
static int e_Legal_Extra
           
static int e_Letter
           
static int e_Letter_Extra
           
static int e_Letter_Extra_Transverse
           
static int e_Letter_Plus
           
static int e_Letter_Rotated
           
static int e_Letter_Small
           
static int e_Letter_Transverse
           
static int e_Note
           
static int e_NUp_1_1
          The Constant e_NUp_1_1.
static int e_NUp_2_1
          The Constant e_NUp_2_1.
static int e_NUp_2_2
          The Constant e_NUp_2_2.
static int e_NUp_3_2
          The Constant e_NUp_3_2.
static int e_NUp_3_3
          The Constant e_NUp_3_3.
static int e_NUp_4_4
          The Constant e_NUp_4_4.
static int e_Orientation_Landscape
          The Constant e_Orientation_Landscape.
static int e_Orientation_Portrait
          The Constant e_Orientation_Portrait.
static int e_OutputColor_Color
          The Constant e_OutputColor_Color.
static int e_OutputColor_Grayscale
          The Constant e_OutputColor_Grayscale.
static int e_OutputColor_Monochrome
          The Constant e_OutputColor_Monochrome.
static int e_OutputQuality_Draft
          The Constant e_OutputQuality_Draft.
static int e_OutputQuality_High
          The Constant e_OutputQuality_High.
static int e_OutputQuality_Low
          The Constant e_OutputQuality_Low.
static int e_OutputQuality_Medium
          The Constant e_OutputQuality_Medium.
static int e_PageOrder_BottomToTopThenLeftToRight
          The Constant e_PageOrder_BottomToTopThenLeftToRight.
static int e_PageOrder_LeftToRightThenTopToBottom
          The Constant e_PageOrder_LeftToRightThenTopToBottom.
static int e_PageOrder_RightToLeftThenTopToBottom
          The Constant e_PageOrder_RightToLeftThenTopToBottom.
static int e_PageOrder_TopToBottomThenLeftToRight
          The Constant e_PageOrder_TopToBottomThenLeftToRight.
static int e_PRC_16k
           
static int e_PRC_16k_Rotated
           
static int e_PRC_32k
           
static int e_PRC_32k_Big
           
static int e_PRC_32k_Big__Rotated
           
static int e_PRC_32k_Rotated
           
static int e_PRC_Envelop_1
           
static int e_PRC_Envelop_1_Rotated
           
static int e_PRC_Envelop_10
           
static int e_PRC_Envelop_10_Rotated
           
static int e_PRC_Envelop_2
           
static int e_PRC_Envelop_2_Rotated
           
static int e_PRC_Envelop_3
           
static int e_PRC_Envelop_3_Rotated
           
static int e_PRC_Envelop_4
           
static int e_PRC_Envelop_4_Rotated
           
static int e_PRC_Envelop_5
           
static int e_PRC_Envelop_5_Rotated
           
static int e_PRC_Envelop_6
           
static int e_PRC_Envelop_6_Rotated
           
static int e_PRC_Envelop_7
           
static int e_PRC_Envelop_7_Rotated
           
static int e_PRC_Envelop_8
           
static int e_PRC_Envelop_8_Rotated
           
static int e_PRC_Envelop_9
           
static int e_PRC_Envelop_9_Rotated
           
static int e_PrintContent_DocumentAndAnnotations
          The Constant e_PrintContent_DocumentAndAnnotations.
static int e_PrintContent_DocumentAnnotationsAndComments
          The Constant e_PrintContent_DocumentAnnotationsAndComments.
static int e_PrintContent_DocumentOnly
          The Constant e_PrintContent_DocumentOnly.
static int e_Quarto
           
static int e_Reserved_48
           
static int e_Reserved_49
           
static int e_ScaleType_FitToOutputPage
          The Constant e_ScaleType_FitToOutputPage.
static int e_ScaleType_None
          The Constant e_ScaleType_None.
static int e_ScaleType_ReduceToOutputPage
          The Constant e_ScaleType_ReduceToOutputPage.
static int e_Statement
           
static int e_Supera_Supera_A4
           
static int e_Superb_Superb_A3
           
static int e_Tabloid
           
static int e_Tabloid_Extra
           
static int e_US_Std_Fanfold
           
 
Constructor Summary
PrinterMode()
          Instantiates a new printer mode.
 
Method Summary
 long __GetHandle()
           
 void destroy()
          Frees the native memory of the object.
 void setAutoCenter(boolean autoCenter)
          Set automatic centering of document pages onto the output pages.
 void setAutoRotate(boolean autoRotate)
          Set automatic rotation of document pages to best fit the output pages.
 void setCollation(boolean collation)
          Set the collation of the printing, useful for multiple copies.
 void setCopyCount(int copyCount)
          Set the number of copies to be printed.
 void setDPI(int dpi)
          Set the DPI (dots per inch) of the printing.
 void setDuplexing(int mode)
          Set the duplexing mode.
 void setNUp(int nup, int pageOrder)
          Set the number of document pages to place on the output pages across and vertically.
 void setNUp(int x, int y, int pageOrder)
          Set the number of document pages to place on the output pages across and vertically.
 void setOrientation(int orientation)
          Set the orientation of the output document.
 void setOutputAnnot(int printContent)
          Set the printing of annotations.
 void setOutputColor(int color)
          Set the color output of the printing.
 void setOutputPageBorder(boolean printBorder)
          Set the printing of page borders, helpful when printing multiple document pages per output page.
 void setOutputQuality(int quality)
          Set the quality of the printing.
 void setPaperSize(int paperSize)
           
 void setPaperSize(Rect size)
          Set the output printer paper size (assumed to be correct).
 void setScale(double scale)
          Set the scaling of the document pages to the output pages.
 void setScaleType(int scaleType)
          Set the scaling of the document page to the output pages.
 void setUseRleImageCompression(boolean useRleImageCompression)
          Set whether RLE image compression is used for printing bitmaps.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

e_Custom

public static final int e_Custom
See Also:
Constant Field Values

e_Letter

public static final int e_Letter
See Also:
Constant Field Values

e_Letter_Small

public static final int e_Letter_Small
See Also:
Constant Field Values

e_Tabloid

public static final int e_Tabloid
See Also:
Constant Field Values

e_Ledger

public static final int e_Ledger
See Also:
Constant Field Values

e_Legal

public static final int e_Legal
See Also:
Constant Field Values

e_Statement

public static final int e_Statement
See Also:
Constant Field Values

e_Executive

public static final int e_Executive
See Also:
Constant Field Values

e_A3

public static final int e_A3
See Also:
Constant Field Values

e_A4

public static final int e_A4
See Also:
Constant Field Values

e_A4_Small

public static final int e_A4_Small
See Also:
Constant Field Values

e_A5

public static final int e_A5
See Also:
Constant Field Values

e_B4_JIS

public static final int e_B4_JIS
See Also:
Constant Field Values

e_B5_JIS

public static final int e_B5_JIS
See Also:
Constant Field Values

e_Folio

public static final int e_Folio
See Also:
Constant Field Values

e_Quarto

public static final int e_Quarto
See Also:
Constant Field Values

e_10x14

public static final int e_10x14
See Also:
Constant Field Values

e_11x17

public static final int e_11x17
See Also:
Constant Field Values

e_Note

public static final int e_Note
See Also:
Constant Field Values

e_Envelope_9

public static final int e_Envelope_9
See Also:
Constant Field Values

e_Envelope_10

public static final int e_Envelope_10
See Also:
Constant Field Values

e_Envelope_11

public static final int e_Envelope_11
See Also:
Constant Field Values

e_Envelope_12

public static final int e_Envelope_12
See Also:
Constant Field Values

e_Envelope_14

public static final int e_Envelope_14
See Also:
Constant Field Values

e_C_Size_Sheet

public static final int e_C_Size_Sheet
See Also:
Constant Field Values

e_D_Size_Sheet

public static final int e_D_Size_Sheet
See Also:
Constant Field Values

e_E_Size_Sheet

public static final int e_E_Size_Sheet
See Also:
Constant Field Values

e_Envelope_DL

public static final int e_Envelope_DL
See Also:
Constant Field Values

e_Envelope_C5

public static final int e_Envelope_C5
See Also:
Constant Field Values

e_Envelope_C3

public static final int e_Envelope_C3
See Also:
Constant Field Values

e_Envelope_C4

public static final int e_Envelope_C4
See Also:
Constant Field Values

e_Envelope_C6

public static final int e_Envelope_C6
See Also:
Constant Field Values

e_Envelope_C65

public static final int e_Envelope_C65
See Also:
Constant Field Values

e_Envelope_B4

public static final int e_Envelope_B4
See Also:
Constant Field Values

e_Envelope_B5

public static final int e_Envelope_B5
See Also:
Constant Field Values

e_Envelope_B6

public static final int e_Envelope_B6
See Also:
Constant Field Values

e_Envelope_Italy

public static final int e_Envelope_Italy
See Also:
Constant Field Values

e_Envelope_Monarch

public static final int e_Envelope_Monarch
See Also:
Constant Field Values

e_6_3_Quarters_Envelope

public static final int e_6_3_Quarters_Envelope
See Also:
Constant Field Values

e_US_Std_Fanfold

public static final int e_US_Std_Fanfold
See Also:
Constant Field Values

e_German_Std_Fanfold

public static final int e_German_Std_Fanfold
See Also:
Constant Field Values

e_German_Legal_Fanfold

public static final int e_German_Legal_Fanfold
See Also:
Constant Field Values

e_B4_ISO

public static final int e_B4_ISO
See Also:
Constant Field Values

e_Japanese_Postcard

public static final int e_Japanese_Postcard
See Also:
Constant Field Values

e_9x11

public static final int e_9x11
See Also:
Constant Field Values

e_10x11

public static final int e_10x11
See Also:
Constant Field Values

e_15x11

public static final int e_15x11
See Also:
Constant Field Values

e_Envelope_Invite

public static final int e_Envelope_Invite
See Also:
Constant Field Values

e_Reserved_48

public static final int e_Reserved_48
See Also:
Constant Field Values

e_Reserved_49

public static final int e_Reserved_49
See Also:
Constant Field Values

e_Letter_Extra

public static final int e_Letter_Extra
See Also:
Constant Field Values

e_Legal_Extra

public static final int e_Legal_Extra
See Also:
Constant Field Values

e_Tabloid_Extra

public static final int e_Tabloid_Extra
See Also:
Constant Field Values

e_A4_Extra

public static final int e_A4_Extra
See Also:
Constant Field Values

e_Letter_Transverse

public static final int e_Letter_Transverse
See Also:
Constant Field Values

e_A4_Transverse

public static final int e_A4_Transverse
See Also:
Constant Field Values

e_Letter_Extra_Transverse

public static final int e_Letter_Extra_Transverse
See Also:
Constant Field Values

e_Supera_Supera_A4

public static final int e_Supera_Supera_A4
See Also:
Constant Field Values

e_Superb_Superb_A3

public static final int e_Superb_Superb_A3
See Also:
Constant Field Values

e_Letter_Plus

public static final int e_Letter_Plus
See Also:
Constant Field Values

e_A4_Plus

public static final int e_A4_Plus
See Also:
Constant Field Values

e_A5_Transverse

public static final int e_A5_Transverse
See Also:
Constant Field Values

e_B5_JIS_Transverse

public static final int e_B5_JIS_Transverse
See Also:
Constant Field Values

e_A3_Extra

public static final int e_A3_Extra
See Also:
Constant Field Values

e_A5_Extra

public static final int e_A5_Extra
See Also:
Constant Field Values

e_B5_ISO_Extra

public static final int e_B5_ISO_Extra
See Also:
Constant Field Values

e_A2

public static final int e_A2
See Also:
Constant Field Values

e_A3_Transverse

public static final int e_A3_Transverse
See Also:
Constant Field Values

e_A3_Extra_Transverse

public static final int e_A3_Extra_Transverse
See Also:
Constant Field Values

e_Japanese_Double_Postcard

public static final int e_Japanese_Double_Postcard
See Also:
Constant Field Values

e_A6

public static final int e_A6
See Also:
Constant Field Values

e_Japanese_Envelope_Kaku_2

public static final int e_Japanese_Envelope_Kaku_2
See Also:
Constant Field Values

e_Japanese_Envelope_Kaku_3

public static final int e_Japanese_Envelope_Kaku_3
See Also:
Constant Field Values

e_Japanese_Envelope_chou_3

public static final int e_Japanese_Envelope_chou_3
See Also:
Constant Field Values

e_Japanese_Envelope_chou_4

public static final int e_Japanese_Envelope_chou_4
See Also:
Constant Field Values

e_Letter_Rotated

public static final int e_Letter_Rotated
See Also:
Constant Field Values

e_A3_Rotated

public static final int e_A3_Rotated
See Also:
Constant Field Values

e_A4_Rotated

public static final int e_A4_Rotated
See Also:
Constant Field Values

e_A5_Rotated

public static final int e_A5_Rotated
See Also:
Constant Field Values

e_B4_JIS_Rotated

public static final int e_B4_JIS_Rotated
See Also:
Constant Field Values

e_B5_JIS_Rotated

public static final int e_B5_JIS_Rotated
See Also:
Constant Field Values

e_Japanese_Postcard_Rotated

public static final int e_Japanese_Postcard_Rotated
See Also:
Constant Field Values

e_Double_Japanese_Postcard_Rotated

public static final int e_Double_Japanese_Postcard_Rotated
See Also:
Constant Field Values

e_A6_Rotated

public static final int e_A6_Rotated
See Also:
Constant Field Values

e_Japanese_Envelope_Kaku_2_Rotated

public static final int e_Japanese_Envelope_Kaku_2_Rotated
See Also:
Constant Field Values

e_Japanese_Envelope_Kaku_3_Rotated

public static final int e_Japanese_Envelope_Kaku_3_Rotated
See Also:
Constant Field Values

e_Japanese_Envelope_chou_3_Rotated

public static final int e_Japanese_Envelope_chou_3_Rotated
See Also:
Constant Field Values

e_Japanese_Envelope_chou_4_Rotated

public static final int e_Japanese_Envelope_chou_4_Rotated
See Also:
Constant Field Values

e_B6_JIS

public static final int e_B6_JIS
See Also:
Constant Field Values

e_B6_JIS_Rotated

public static final int e_B6_JIS_Rotated
See Also:
Constant Field Values

e_12x11

public static final int e_12x11
See Also:
Constant Field Values

e_Japanese_Envelope_You_4

public static final int e_Japanese_Envelope_You_4
See Also:
Constant Field Values

e_Japanese_Envelope_You_4_Rotated

public static final int e_Japanese_Envelope_You_4_Rotated
See Also:
Constant Field Values

e_PRC_16k

public static final int e_PRC_16k
See Also:
Constant Field Values

e_PRC_32k

public static final int e_PRC_32k
See Also:
Constant Field Values

e_PRC_32k_Big

public static final int e_PRC_32k_Big
See Also:
Constant Field Values

e_PRC_Envelop_1

public static final int e_PRC_Envelop_1
See Also:
Constant Field Values

e_PRC_Envelop_2

public static final int e_PRC_Envelop_2
See Also:
Constant Field Values

e_PRC_Envelop_3

public static final int e_PRC_Envelop_3
See Also:
Constant Field Values

e_PRC_Envelop_4

public static final int e_PRC_Envelop_4
See Also:
Constant Field Values

e_PRC_Envelop_5

public static final int e_PRC_Envelop_5
See Also:
Constant Field Values

e_PRC_Envelop_6

public static final int e_PRC_Envelop_6
See Also:
Constant Field Values

e_PRC_Envelop_7

public static final int e_PRC_Envelop_7
See Also:
Constant Field Values

e_PRC_Envelop_8

public static final int e_PRC_Envelop_8
See Also:
Constant Field Values

e_PRC_Envelop_9

public static final int e_PRC_Envelop_9
See Also:
Constant Field Values

e_PRC_Envelop_10

public static final int e_PRC_Envelop_10
See Also:
Constant Field Values

e_PRC_16k_Rotated

public static final int e_PRC_16k_Rotated
See Also:
Constant Field Values

e_PRC_32k_Rotated

public static final int e_PRC_32k_Rotated
See Also:
Constant Field Values

e_PRC_32k_Big__Rotated

public static final int e_PRC_32k_Big__Rotated
See Also:
Constant Field Values

e_PRC_Envelop_1_Rotated

public static final int e_PRC_Envelop_1_Rotated
See Also:
Constant Field Values

e_PRC_Envelop_2_Rotated

public static final int e_PRC_Envelop_2_Rotated
See Also:
Constant Field Values

e_PRC_Envelop_3_Rotated

public static final int e_PRC_Envelop_3_Rotated
See Also:
Constant Field Values

e_PRC_Envelop_4_Rotated

public static final int e_PRC_Envelop_4_Rotated
See Also:
Constant Field Values

e_PRC_Envelop_5_Rotated

public static final int e_PRC_Envelop_5_Rotated
See Also:
Constant Field Values

e_PRC_Envelop_6_Rotated

public static final int e_PRC_Envelop_6_Rotated
See Also:
Constant Field Values

e_PRC_Envelop_7_Rotated

public static final int e_PRC_Envelop_7_Rotated
See Also:
Constant Field Values

e_PRC_Envelop_8_Rotated

public static final int e_PRC_Envelop_8_Rotated
See Also:
Constant Field Values

e_PRC_Envelop_9_Rotated

public static final int e_PRC_Envelop_9_Rotated
See Also:
Constant Field Values

e_PRC_Envelop_10_Rotated

public static final int e_PRC_Envelop_10_Rotated
See Also:
Constant Field Values

e_Duplex_Auto

public static final int e_Duplex_Auto
The Constant e_Duplex_Auto.

See Also:
Constant Field Values

e_Duplex_None

public static final int e_Duplex_None
The Constant e_Duplex_None.

See Also:
Constant Field Values

e_Duplex_LongSide

public static final int e_Duplex_LongSide
The Constant e_Duplex_LongSide.

See Also:
Constant Field Values

e_Duplex_ShortSide

public static final int e_Duplex_ShortSide
The Constant e_Duplex_ShortSide.

See Also:
Constant Field Values

e_OutputQuality_Draft

public static final int e_OutputQuality_Draft
The Constant e_OutputQuality_Draft.

See Also:
Constant Field Values

e_OutputQuality_Low

public static final int e_OutputQuality_Low
The Constant e_OutputQuality_Low.

See Also:
Constant Field Values

e_OutputQuality_Medium

public static final int e_OutputQuality_Medium
The Constant e_OutputQuality_Medium.

See Also:
Constant Field Values

e_OutputQuality_High

public static final int e_OutputQuality_High
The Constant e_OutputQuality_High.

See Also:
Constant Field Values

e_OutputColor_Color

public static final int e_OutputColor_Color
The Constant e_OutputColor_Color.

See Also:
Constant Field Values

e_OutputColor_Grayscale

public static final int e_OutputColor_Grayscale
The Constant e_OutputColor_Grayscale.

See Also:
Constant Field Values

e_OutputColor_Monochrome

public static final int e_OutputColor_Monochrome
The Constant e_OutputColor_Monochrome.

See Also:
Constant Field Values

e_Orientation_Portrait

public static final int e_Orientation_Portrait
The Constant e_Orientation_Portrait.

See Also:
Constant Field Values

e_Orientation_Landscape

public static final int e_Orientation_Landscape
The Constant e_Orientation_Landscape.

See Also:
Constant Field Values

e_ScaleType_None

public static final int e_ScaleType_None
The Constant e_ScaleType_None.

See Also:
Constant Field Values

e_ScaleType_FitToOutputPage

public static final int e_ScaleType_FitToOutputPage
The Constant e_ScaleType_FitToOutputPage.

See Also:
Constant Field Values

e_ScaleType_ReduceToOutputPage

public static final int e_ScaleType_ReduceToOutputPage
The Constant e_ScaleType_ReduceToOutputPage.

See Also:
Constant Field Values

e_NUp_1_1

public static final int e_NUp_1_1
The Constant e_NUp_1_1.

See Also:
Constant Field Values

e_NUp_2_1

public static final int e_NUp_2_1
The Constant e_NUp_2_1.

See Also:
Constant Field Values

e_NUp_2_2

public static final int e_NUp_2_2
The Constant e_NUp_2_2.

See Also:
Constant Field Values

e_NUp_3_2

public static final int e_NUp_3_2
The Constant e_NUp_3_2.

See Also:
Constant Field Values

e_NUp_3_3

public static final int e_NUp_3_3
The Constant e_NUp_3_3.

See Also:
Constant Field Values

e_NUp_4_4

public static final int e_NUp_4_4
The Constant e_NUp_4_4.

See Also:
Constant Field Values

e_PageOrder_LeftToRightThenTopToBottom

public static final int e_PageOrder_LeftToRightThenTopToBottom
The Constant e_PageOrder_LeftToRightThenTopToBottom.

See Also:
Constant Field Values

e_PageOrder_RightToLeftThenTopToBottom

public static final int e_PageOrder_RightToLeftThenTopToBottom
The Constant e_PageOrder_RightToLeftThenTopToBottom.

See Also:
Constant Field Values

e_PageOrder_TopToBottomThenLeftToRight

public static final int e_PageOrder_TopToBottomThenLeftToRight
The Constant e_PageOrder_TopToBottomThenLeftToRight.

See Also:
Constant Field Values

e_PageOrder_BottomToTopThenLeftToRight

public static final int e_PageOrder_BottomToTopThenLeftToRight
The Constant e_PageOrder_BottomToTopThenLeftToRight.

See Also:
Constant Field Values

e_PrintContent_DocumentOnly

public static final int e_PrintContent_DocumentOnly
The Constant e_PrintContent_DocumentOnly.

See Also:
Constant Field Values

e_PrintContent_DocumentAndAnnotations

public static final int e_PrintContent_DocumentAndAnnotations
The Constant e_PrintContent_DocumentAndAnnotations.

See Also:
Constant Field Values

e_PrintContent_DocumentAnnotationsAndComments

public static final int e_PrintContent_DocumentAnnotationsAndComments
The Constant e_PrintContent_DocumentAnnotationsAndComments.

See Also:
Constant Field Values
Constructor Detail

PrinterMode

public PrinterMode()
            throws PDFNetException
Instantiates a new printer mode.

Throws:
PDFNetException
Method Detail

setAutoCenter

public void setAutoCenter(boolean autoCenter)
                   throws PDFNetException
Set automatic centering of document pages onto the output pages.

Parameters:
autoCenter - if true will center document pages onto the output pages. Default is true.
Throws:
PDFNetException

setAutoRotate

public void setAutoRotate(boolean autoRotate)
                   throws PDFNetException
Set automatic rotation of document pages to best fit the output pages.

Parameters:
autoRotate - if true will rotate document pages onto the output pages. Default is true.
Throws:
PDFNetException

setCollation

public void setCollation(boolean collation)
                  throws PDFNetException
Set the collation of the printing, useful for multiple copies.

Parameters:
collation - if true, pages of copies will be printed 1, 2, 3. if false, then pages of copies will be printed 1, 1, 1, ..., 2, 2, 2, ...
Throws:
PDFNetException

setCopyCount

public void setCopyCount(int copyCount)
                  throws PDFNetException
Set the number of copies to be printed.

Parameters:
copyCount - the number of copies to be printed, must be greater than zero
Throws:
PDFNetException

setDPI

public void setDPI(int dpi)
            throws PDFNetException
Set the DPI (dots per inch) of the printing.

Parameters:
dpi - the new DPI
Throws:
PDFNetException

setDuplexing

public void setDuplexing(int mode)
                  throws PDFNetException
Set the duplexing mode.

Parameters:
mode - the new duplexing
Throws:
PDFNetException

setNUp

public void setNUp(int nup,
                   int pageOrder)
            throws PDFNetException
Set the number of document pages to place on the output pages across and vertically. Pages will be automatically rotated to best fit the page.

Parameters:
nup - one of {e_NUp_1_1, e_NUp_2_1, e_NUp_2_2, e_NUp_3_2, e_NUp_3_3, e_NUp_4_4}. Default is e_NUp_1_1.
pageOrder - order of document pages across and down output page. Default is e_PageOrder_LeftToRightThenTopToBottom.
Throws:
PDFNetException

setNUp

public void setNUp(int x,
                   int y,
                   int pageOrder)
            throws PDFNetException
Set the number of document pages to place on the output pages across and vertically. Pages will be automatically rotated to best fit the page. Typical values: (2,1) 2-up; (2,2) 4 per page, etc

Parameters:
x - number of document pages across. Default is 1.
y - number of document pages down. Default is 1.
pageOrder - order of document pages across and down output page Default is e_PageOrder_LeftToRightThenTopToBottom.
Throws:
PDFNetException

setOrientation

public void setOrientation(int orientation)
                    throws PDFNetException
Set the orientation of the output document.

Parameters:
orientation - {e_Orientation_Portrait, e_Orientation_Landscape} Default is e_Orientation_Portrait.
Throws:
PDFNetException

setOutputAnnot

public void setOutputAnnot(int printContent)
                    throws PDFNetException
Set the printing of annotations.

Parameters:
printContent - one of {e_PrintContent_DocumentOnly, e_PrintContent_DocumentAndAnnotations}. Default is e_PrintContent_DocumentAndAnnotations.
Throws:
PDFNetException

setOutputColor

public void setOutputColor(int color)
                    throws PDFNetException
Set the color output of the printing.

Parameters:
color - the new output color
Throws:
PDFNetException

setOutputQuality

public void setOutputQuality(int quality)
                      throws PDFNetException
Set the quality of the printing. Overridden if SetDPI is called.

Parameters:
quality - the new output quality
Throws:
PDFNetException

setOutputPageBorder

public void setOutputPageBorder(boolean printBorder)
                         throws PDFNetException
Set the printing of page borders, helpful when printing multiple document pages per output page.

Parameters:
printBorder - if true will add a thin frame around each page border. Default is false.
Throws:
PDFNetException

setPaperSize

public void setPaperSize(Rect size)
                  throws PDFNetException
Set the output printer paper size (assumed to be correct).

Parameters:
size - the size of the output paper size in points (72 points = 1 inch). Default is US Letter or Rect(0, 0, 612, 792)
Throws:
PDFNetException

setPaperSize

public void setPaperSize(int paperSize)
                  throws PDFNetException
Throws:
PDFNetException

setScale

public void setScale(double scale)
              throws PDFNetException
Set the scaling of the document pages to the output pages. Causes SetScaleType(e_ScaleType_CustomScale) to be set.

Parameters:
scale - to apply to document pages. 1.0 is no scale, greater than 1.0 increases document page sizes, less than 1.0 reduces document pages sizes on output pages. Default is 1.0
Throws:
PDFNetException

setScaleType

public void setScaleType(int scaleType)
                  throws PDFNetException
Set the scaling of the document page to the output pages.

Parameters:
scaleType - one of {e_ScaleType_None, e_ScaleType_FitToOutputPage, e_ScaleType_ReduceToOutputPage}. Default is e_ScaleType_None.
Throws:
PDFNetException

setUseRleImageCompression

public void setUseRleImageCompression(boolean useRleImageCompression)
                               throws PDFNetException
Set whether RLE image compression is used for printing bitmaps.

Parameters:
useRleImageCompression - if true, printer spool file will be reduced. However, some printers do not support this type of image compression and will produce blank pages. Default is false
Throws:
PDFNetException

destroy

public void destroy()
Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.


__GetHandle

public long __GetHandle()


© 2002-2011 PDFTron Systems Inc.