Adobe InCopy CS5.5 (7.5) Object Model JS: LayoutPrintPreference

InCopy CS5.5

Class

LayoutPrintPreference

 Layout print preferences. Base Class: Preference

QuickLinks

addEventListener, getElements, removeEventListener, toSource, toSpecifier

Hierarchy

Application
Preference
LayoutPrintPreference
Event | EventListener | MutationEvent

Properties

PropertyTypeAccessDescription
collatingbool r/wIf true, collate printed copies.
copiesnumber r/wThe number of copies to print. Note: Not valid when printer is PostScript File.
eventListenersEventListeners EventListener readonlyA collection of event listeners.
eventsEvents Event readonlyA collection of events.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
pageInformationMarksbool r/wIf true, prints the filename, page number, current date and time, and color separation name.
paperHeightPaperSizeUnit r/wThe paper height. Note: Valid only when paper size is custom or scale mode is scale width height. Can return: PaperSize enumerator or Unit.
paperSizePaperSizes
String
r/wThe paper size, specified as either a string or an enumeration. For information on paper size names, see paper size list. Can return: PaperSizes enumerator or String.
paperSizeList Array of string readonlyA list of the available paper sizes.
paperWidthPaperSize
Unit
r/wThe paper width. Note: Valid only when paper size is custom or scale mode is scale width height. Can return: PaperSize enumerator or Unit.
parentApplication readonlyThe parent of the LayoutPrintPreference (a Application).
printPageOrientationPrintPageOrientation:
PrintPageOrientation.PORTRAIT
PrintPageOrientation.LANDSCAPE
PrintPageOrientation.REVERSE_PORTRAIT
PrintPageOrientation.REVERSE_LANDSCAPE
r/wThe orientation of the printed page.
printerPrinter
String
r/wThe current printer. Can return: Printer enumerator or String.
printerList Array of string readonlyAvailable printers.
propertiesObject r/wA property that allows setting of several properties at the same time.
reverseOrderbool r/wIf true, prints pages in reverse order.
scaleHeightnumber r/wThe amount (as a percentage) that the page height is scaled during printing. (Range: 0 to 1000) Note: Valid only when scale mode is scale width height.
scaleModeScaleModes:
ScaleModes.SCALE_WIDTH_HEIGHT
ScaleModes.SCALE_TO_FIT
r/wThe policy for scaling the page. Note: Valid only when printing from Layout view.
scaleProportionalbool r/wIf true, constrains the proportions of the scaling; uses the most recent value for either scale width or scale height to define both values. Note: Valid only when scale mode is scale width height.
scaleWidthnumber r/wThe amount (as a percentage) that the page width is scaled during printing. (Range: 0 to 1000) Note: Valid only when scale mode is scale width height.

Methods

Instances

EventListener addEventListener (eventType: string, handler: varies[, captures: bool=false])
Adds an event listener.

ParameterTypeDescription
eventTypestringThe event type.
handlerFile
JavaScript Function
The event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

Array of LayoutPrintPreference getElements ()
Resolves the object specifier, creating an array of object references.

bool removeEventListener (eventType: string, handler: varies[, captures: bool=false])
Removes the event listener.

ParameterTypeDescription
eventTypestringThe registered event type.
handlerFile
JavaScript Function
The registered event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

string toSource ()
Generates a string which, if executed, will return the LayoutPrintPreference.

string toSpecifier ()
Retrieves the object specifier.

Element of

Application.layoutPrintPreferences

Return

Array of LayoutPrintPreference LayoutPrintPreference.getElements ()

Jongware, 29-Apr-2012 v3.0.3iContents :: Index