Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

PrintParams

PrintParams object controls the printing options for PDF documents. PrintParams objects are obtained through the Doc.getPrintParams method and are used with the Doc.print method.

properties

binaryOK

SecureTypeAccess
NobooleanR/W

Not supported by Revu. Exists for compatibility reasons.


bitmapDPI

SecureTypeAccess
NonumberR/W

Not supported by Revu. Exists for compatibility reasons.


booklet

SecureTypeAccess
NoobjectR/W

Not supported by Revu. Exists for compatibility reasons.


colorOverride

SecureTypeAccess
NonumberR/W

Overrides color printing settings. See constants.colorOverrides for valid values.

example:

var pp = this.getPrintParams()
pp.colorOverride = pp.constants.colorOverrides.gray // Force grayscale printing
this.print(pp)

colorProfile

SecureTypeAccess
NostringR/W

Not supported by Revu. Exists for compatibility reasons.


constants

SecureTypeAccess
NoobjectR

Object containing constants used with PrintParams operations.

constants

PropertyTypeDescription
bookletBindingsobjectBooklet binding edge options
bookletDuplexModeobjectBooklet duplex printing modes
colorOverridesobjectColor override options
fontPoliciesobjectFont download policies
handlingobjectPage handling options
interactionLevelobjectUser interaction levels
nUpPageOrdersobjectPage ordering for N-up printing
printContentsobjectContent to print
flagValuesobjectAdvanced printing flags
rasterFlagValuesobjectRaster printing flags
subsetsobjectPage subset options
tileMarksobjectTile mark positions
usagesobjectUsage options for various features

bookletBindings

PropertyValueDescription
Left0Bind on left edge
Right1Bind on right edge
LeftTall2Bind on left edge (tall pages)
RightTall3Bind on right edge (tall pages)

bookletDuplexMode

PropertyValueDescription
BothSides0Print on both sides
FrontSideOnly1Print on front side only
BackSideOnly2Print on back side only

colorOverrides

PropertyValueDescription
auto0Use printer default
gray1Force grayscale
mono2Force monochrome

fontPolicies

PropertyValueDescription
jobStart0Download fonts at start of job
pageRange1Download fonts for page range
everyPage2Download fonts for every page

handling

PropertyValueDescription
none1No special handling
fit2Fit to page
shrink3Shrink oversized pages
tileLarge4Tile large pages
tileAll5Tile all pages
nUp6Multiple pages per sheet
booklet7Booklet printing

interactionLevel

PropertyValueDescription
full1Show print dialog
automatic2Print with progress dialog
silent3Print silently

nUpPageOrders

PropertyValueDescription
Horizontal1Left to right, top to bottom
HorizontalReversed2Right to left, top to bottom
Vertical3Top to bottom, left to right

printContents

PropertyValueDescription
doc1Document only
docAndComments2Document and comments
formFieldsOnly3Form fields only

subsets

PropertyValueDescription
all-3All pages
even-5Even pages only
odd-4Odd pages only

tileMarks

PropertyValueDescription
none0No tile marks
west1Western (left) style marks
east2Eastern (right) style marks

example:

var pp = this.getPrintParams()
pp.interactive = pp.constants.interactionLevel.automatic
pp.pageHandling = pp.constants.handling.fit
pp.pageSubset = pp.constants.subsets.odd
this.print(pp)

downloadFarEastFonts

SecureTypeAccess
NobooleanR/W

Not supported by Revu. Exists for compatibility reasons.


fileName

SecureTypeAccess
NostringR/W

Output filename when printing to file. Default is empty string.

example:

var pp = this.getPrintParams()
pp.fileName = "output.ps" // Print to PostScript file
pp.printerName = "PostScript File"
this.print(pp)

firstPage

SecureTypeAccess
NonumberR/W

0-based index of the first page to print. Default is 0.

example:

var pp = this.getPrintParams()
pp.firstPage = 2  // Start printing from page 3
pp.lastPage = 5   // End at page 6
this.print(pp)

flags

SecureTypeAccess
NonumberR/W

Not supported by Revu. Exists for compatibility reasons.


fontPolicy

SecureTypeAccess
NonumberR/W

Not supported by Revu. Exists for compatibility reasons.


gradientDPI

SecureTypeAccess
NonumberR/W

Not supported by Revu. Exists for compatibility reasons.


interactive

SecureTypeAccess
NonumberR/W

Level of user interaction during printing. See constants.interactionLevel for valid values. Default is full.

example:

var pp = this.getPrintParams()
pp.interactive = pp.constants.interactionLevel.silent // Print without dialogs
this.print(pp)

lastPage

SecureTypeAccess
NonumberR/W

0-based index of the last page to print. Default is the last page in the document.

example:

var pp = this.getPrintParams()
pp.firstPage = 0
pp.lastPage = 9  // Print first 10 pages
this.print(pp)

nUpAutoRotate

SecureTypeAccess
NobooleanR/W

Not supported by Revu. Exists for compatibility reasons.


nUpNumPagesH

SecureTypeAccess
NonumberR/W

Not supported by Revu. Exists for compatibility reasons.


nUpNumPagesV

SecureTypeAccess
NonumberR/W

Not supported by Revu. Exists for compatibility reasons.


nUpPageBorder

SecureTypeAccess
NobooleanR/W

Not supported by Revu. Exists for compatibility reasons.


nUpPageOrder

SecureTypeAccess
NonumberR/W

Not supported by Revu. Exists for compatibility reasons.


pageHandling

SecureTypeAccess
NonumberR/W

Page sizing and handling option. See constants.handling for valid values. Default is fit.

example:

var pp = this.getPrintParams()
pp.pageHandling = pp.constants.handling.shrink // Shrink oversized pages
this.print(pp)

pageSubset

SecureTypeAccess
NonumberR/W

Subset of pages to print. See constants.subsets for valid values. Default is all.

example:

var pp = this.getPrintParams()
pp.pageSubset = pp.constants.subsets.even // Print even pages only
this.print(pp)

printAsImage

SecureTypeAccess
NobooleanR/W

Specifies whether to rasterize pages as images before printing. Default is false.

example:

var pp = this.getPrintParams()
pp.printAsImage = true // Print as image for compatibility
pp.bitmapDPI = 300
this.print(pp)

printContent

SecureTypeAccess
NonumberR/W

Not supported by Revu. Exists for compatibility reasons.


printerName

SecureTypeAccess
NostringR/W

Name of the printer to use. Empty string uses the default printer. Default is "".

example:

var pp = this.getPrintParams()
pp.printerName = "HP LaserJet" // Specific printer
this.print(pp)

// Use default printer
pp.printerName = ""
this.print(pp)

psLevel

SecureTypeAccess
NonumberR/W

Not supported by Revu. Exists for compatibility reasons.


rasterFlags

SecureTypeAccess
NonumberR/W

Not supported by Revu. Exists for compatibility reasons.


reversePages

SecureTypeAccess
NobooleanR/W

Specifies whether to print pages in reverse order. Default is false.

example:

var pp = this.getPrintParams()
pp.reversePages = true // Print last page first
this.print(pp)

tileLabel

SecureTypeAccess
NobooleanR/W

Not supported by Revu. Exists for compatibility reasons.


tileMark

SecureTypeAccess
NonumberR/W

Not supported by Revu. Exists for compatibility reasons.


tileOverlap

SecureTypeAccess
NonumberR/W

Not supported by Revu. Exists for compatibility reasons.


tileScale

SecureTypeAccess
NonumberR/W

Not supported by Revu. Exists for compatibility reasons.


transparencyLevel

SecureTypeAccess
NonumberR/W

Not supported by Revu. Exists for compatibility reasons.


usePrinterCRD

SecureTypeAccess
NonumberR/W

Not supported by Revu. Exists for compatibility reasons.


useT1Conversion

SecureTypeAccess
NonumberR/W

Not supported by Revu. Exists for compatibility reasons.