Class
Layout print preferences. Base Class: Preference
addEventListener, getElements, removeEventListener, toSource, toSpecifier
LayoutPrintPreference
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
collating | bool | r/w | If true, collate printed copies. |
copies | number | r/w | The number of copies to print. Note: Not valid when printer is PostScript File. |
eventListeners | EventListeners EventListener | readonly | A collection of event listeners. |
events | Events Event | readonly | A collection of events. |
isValid | bool | readonly | Returns true if the object specifier resolves to valid objects. |
pageInformationMarks | bool | r/w | If true, prints the filename, page number, current date and time, and color separation name. |
paperHeight | PaperSizeUnit | r/w | The paper height. Note: Valid only when paper size is custom or scale mode is scale width height. Can return: PaperSize enumerator or Unit. |
paperSize | PaperSizes String |
r/w | The 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 | readonly | A list of the available paper sizes. |
paperWidth | PaperSize Unit |
r/w | The paper width. Note: Valid only when paper size is custom or scale mode is scale width height. Can return: PaperSize enumerator or Unit. |
parent | Application | readonly | The parent of the LayoutPrintPreference (a Application). |
printPageOrientation | PrintPageOrientation: PrintPageOrientation.PORTRAIT PrintPageOrientation.LANDSCAPE PrintPageOrientation.REVERSE_PORTRAIT PrintPageOrientation.REVERSE_LANDSCAPE |
r/w | The orientation of the printed page. |
printer | Printer String |
r/w | The current printer. Can return: Printer enumerator or String. |
printerList | Array of string | readonly | Available printers. |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
reverseOrder | bool | r/w | If true, prints pages in reverse order. |
scaleHeight | number | r/w | The 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. |
scaleMode | ScaleModes: ScaleModes.SCALE_WIDTH_HEIGHT ScaleModes.SCALE_TO_FIT |
r/w | The policy for scaling the page. Note: Valid only when printing from Layout view. |
scaleProportional | bool | r/w | If 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. |
scaleWidth | number | r/w | The 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.
Parameter | Type | Description |
---|---|---|
eventType | string | The event type. |
handler | File JavaScript Function | The event handler. Can accept: File or JavaScript Function. |
captures | bool | This 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.
Parameter | Type | Description |
---|---|---|
eventType | string | The registered event type. |
handler | File JavaScript Function | The registered event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
string toSource ()
Generates a string which, if executed, will return the LayoutPrintPreference.
Element of
Application.layoutPrintPreferences
Return
Array of LayoutPrintPreference LayoutPrintPreference.getElements ()
Jongware, 29-Apr-2012 v3.0.3i | Contents :: Index |