Hi Dipti -
Just seeing this - but hopefully it will help someone else searching for this. There are some additional required fields for the ticket - updates to documentation are coming soon. You might try something like this:
var ticket = {
version: '1.0',
print: {
color: {type: 'STANDARD_MONOCHROME'},
duplex: {type: 'NO_DUPLEX'},
page_orientation: {type: 'PORTRAIT'},
copies: {copies: 1},
dpi: {horizontal_dpi: dpix, vertical_dpi: dpiy},
media_size: {
width_microns: width_microns,
height_microns: height_microns,
vendor_id: vendor_id
},
collate: {collate: false}
}
With the appropriate dpi, width/height_microns, and vendor_id values (for example, info returned from getPrinterInfo function).
Thanks.
Nathan