Simplified graphics interface for JS rendering. @status UNDER_REVIEW
[scriptable, uuid(343700dd-078b-42b6-a809-b9c1d7e951d0)]
Constants
Attributes
The edge measurements define the positioning of the headers and footers on the page. They're measured as an offset from the "unwriteable margin" (described below).
This attribute tracks whether the PS has been initialized from prefs. If a different name is set into the "printerName" attribute than the one it was initialized with the PS will then get intialized from prefs again.
This attribute tracks whether the PS has been initialized from a printer specified by the "printerName" attr. If a different name is set into the "printerName" attribute than the one it was initialized with the PS will then get intialized from that printer.
The margins define the positioning of the content on the page. They're treated as an offset from the "unwriteable margin" (described below).
Data Members
Methods
Get the page size in twips, considering the orientation (portrait or landscape).
Sets/Gets the "unwriteable margin" for the page format. This defines the boundary from which we'll measure the EdgeInTwips and MarginInTwips attributes, to place the headers and content, respectively. Note: Implementations of SetUnwriteableMarginInTwips should handle negative margin values by falling back on the system default for that margin.
We call this function so that anything that requires a run of the event loop can do so safely. The print dialog runs the event loop but in silent printing that doesn't happen. Either this or ShowPrintDialog (but not both) MUST be called by the print engine before printing, otherwise printing can fail on some platforms.
Assigns the internal values from the "in" arg to the current object
Makes a new copy
Compare to:
