Simplified graphics interface for JS rendering.
Set PrintOptions
Get PrintOptions
Set PrintOptions Bit field
Get the page size in twips, considering the
orientation (portrait or landscape).
Makes a new copy
Assigns the internal values from the “in” arg to the current object
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.
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.
Get more accurate print ranges from the superior interval
(startPageRange, endPageRange). The aPages array is populated with a
list of pairs (start, end), where the endpoints are included. The print
ranges (start, end), must not overlap and must be in the
(startPageRange, endPageRange) scope.
If there are no print ranges the aPages array is cleared.
Data Members
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).
The margins define the positioning of the content on the page.
They’re treated as an offset from the “unwriteable margin”
(described below).
The unwriteable margin defines the printable region of the paper, creating
an invisible border from which the edge and margin attributes are measured.
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.
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 if the settings made on the margin box is
stored in the prefs or not.
PrintSettings to be Saved Navigation Constants
FrameSet Default Type Constants
Page Size Type Constants
Page Size Unit Constants
Orientation Constants
Print Frame Constants
How to Enable Frame Set Printing Constants
Output file format