bounds |
Object
|
<optional>
|
null
|
Bounding box rectangle.
Properties
Name |
Type |
Attributes |
Default |
Description |
x |
number
|
<optional>
|
0
|
Distance from left for bounding box starting corner |
y |
number
|
<optional>
|
0
|
Distance from top for bounding box starting corner |
width |
number
|
<optional>
|
0
|
Width of bounding box |
height |
number
|
<optional>
|
0
|
Height of bounding box |
|
colorType |
string
|
<optional>
|
'color'
|
Valid values [color | grayscale | blackwhite] |
copies |
number
|
<optional>
|
1
|
Number of copies to be printed. |
density |
number
|
Array.<number>
|
Object
|
Array.<Object>
|
string
|
<optional>
|
0
|
Pixel density (DPI, DPMM, or DPCM depending on [options.units] ).
If provided as an array, uses the first supported density found (or the first entry if none found).
If provided as a string, valid values are [best | draft] , corresponding to highest or lowest reported density respectively.
Properties
Name |
Type |
Attributes |
Default |
Description |
cross |
number
|
<optional>
|
0
|
Asymmetric pixel density for the cross feed direction. |
feed |
number
|
<optional>
|
0
|
Asymmetric pixel density for the feed direction. |
|
duplex |
boolean
|
string
|
<optional>
|
false
|
Double sided printing, Can specify duplex style by passing a string value: [one-sided | duplex | long-edge | tumble | short-edge] |
fallbackDensity |
number
|
<optional>
|
null
|
Value used when default density value cannot be read, or in cases where reported as "Normal" by the driver, (in DPI, DPMM, or DPCM depending on [options.units] ). |
interpolation |
string
|
<optional>
|
'bicubic'
|
Valid values [bicubic | bilinear | nearest-neighbor] . Controls how images are handled when resized. |
jobName |
string
|
<optional>
|
null
|
Name to display in print queue. |
legacy |
boolean
|
<optional>
|
false
|
If legacy style printing should be used. |
margins |
Object
|
number
|
<optional>
|
0
|
If just a number is provided, it is used as the margin for all sides.
Properties
Name |
Type |
Attributes |
Default |
Description |
top |
number
|
<optional>
|
0
|
|
right |
number
|
<optional>
|
0
|
|
bottom |
number
|
<optional>
|
0
|
|
left |
number
|
<optional>
|
0
|
|
|
orientation |
string
|
<optional>
|
null
|
Valid values [portrait | landscape | reverse-landscape] |
paperThickness |
number
|
<optional>
|
null
|
|
printerTray |
string
|
number
|
<optional>
|
null
|
Printer tray to pull from. The number N assumes string equivalent of 'Tray N'. Uses printer default if NULL. |
rasterize |
boolean
|
<optional>
|
false
|
Whether documents should be rasterized before printing.
Specifying [options.density] for PDF print formats will set this to true . |
rotation |
number
|
<optional>
|
0
|
Image rotation in degrees. |
scaleContent |
boolean
|
<optional>
|
true
|
Scales print content to page size, keeping ratio. |
size |
Object
|
<optional>
|
null
|
Paper size.
Properties
Name |
Type |
Attributes |
Default |
Description |
width |
number
|
<optional>
|
null
|
Page width. |
height |
number
|
<optional>
|
null
|
Page height. |
|
units |
string
|
<optional>
|
'in'
|
Page units, applies to paper size, margins, and density. Valid value [in | cm | mm] |
altPrinting |
boolean
|
<optional>
|
false
|
Print the specified file using CUPS command line arguments. Has no effect on Windows. |
encoding |
string
|
<optional>
|
null
|
Character set |
endOfDoc |
string
|
<optional>
|
null
|
DEPRECATED Raw only: Character(s) denoting end of a page to control spooling. |
perSpool |
number
|
<optional>
|
1
|
DEPRECATED: Raw only: Number of pages per spool. |
spool |
Object
|
<optional>
|
null
|
Advanced spooling options.
Properties
Name |
Type |
Attributes |
Default |
Description |
size |
number
|
<optional>
|
null
|
Number of pages per spool. Default is no limit. If spool.end is provided, defaults to 1 |
end |
string
|
<optional>
|
null
|
Raw only: Character(s) denoting end of a page to control spooling. |
|