print resolution (dpi)
these are in inches
The edge measurements define the positioning of the headers and footers on the page. They're treated as an offset from the edges of the page, but are forced to be at least the "unwriteable margin" (described below).
Print Background Images Whether
rule margins should be honored or not. If the
rule sets its margins to zero, we automatically ignore unwriteable margins, but nonzero values will be clamped to unwriteable margins.
Whether unwritable margins should be ignored. This should be set when
when the user explicitly requests "Margins: None", e.g. for documents
where accurate scaling matters. Note: While honorPageRuleMargins
and
this flag can't be set at the same time through the UI, doing so will
cause even the nonzero
rule margins to ignore unwriteable margins.
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 initialized from prefs again.
duplex mode initialize helpers 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 initialized from that printer.
these are in inches
The margins define the positioning of the content on the page. and footers on the page. They're treated as an offset from the edges of the page, but are forced to be at least the "unwriteable margin," unless set to be ignored (described below).
see orientation consts
For numPagesPerSheet, we support these values: 1, 2, 4, 6, 9, 16.
Unsupported values will be treated internally as 1 page per sheet, and will trigger assertion failures in debug builds.
a false means grayscale
Output device information
width of the paper in inches or mm
shrinks content to fit on page Additional XP Related
height of the paper in inches or mm
identifier of paper (not display name)
values 0.0 - 1.0
Print Background Colors
for kOutputDestinationPrinter
paper is in inches or mm
Whether to only print the selected nodes
If outputDestination==kOutputDestinationPrinter, this is set to the name of the printer that the print output should be saved to, but only in the parent process (we don't want to leak printer names to potentially compromised content processes).
in milliseconds
Whether to draw guidelines showing the margin settings
print without putting up the dialog
If outputDestination==kOutputDestinationFile, this is set to the path of the file that the print output should be saved to, but only in the parent process (we don't want to leak system paths to potentially compromised content processes).
these are in inches
The unwriteable margin defines the printable region of the paper.
Whether
rule size should be used for the output paper size.
Get the printed sheet size in twips, considering both the user-specified orientation (portrait or landscape) as well as the fact that we might be inverting the orientation to account for 2 or 6 pages-per-sheet.
This API will usually behave the same (& return the same thing) as GetEffectivePageSize, except for when we are printing with 2 or 6 pages-per-sheet, in which case the return values (aWidth & aHeight) will be swapped with respect to what GetEffectivePageSize would return.
Callers should use this method rather than GetEffectivePageSize when they really do want the size of the sheet of paper to be printed, rather than the possibly-"virtualized"-via-pages-per-sheet page size.
Get the orientation of a printed sheet. This is usually the same as the 'orientation' attribute (which is the orientation of individual pages), except when we're printing with 2 or 6 pages-per-sheet, in which case it'll be the opposite value.
Note that this value is not independently settable. Its value is fully determined by the 'orientation' and 'numPagesPerSheet' attributes.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
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.
Returns true if the settings will result in an equivalent preview and therefore print. The printer name is ignored and it allows for a small delta in sizes to allow for rounding differences.
Generated using TypeDoc
Simplified graphics interface for JS rendering.