B-4
Cisco Interactive Experience Client 4600 Series User Guide
Appendix B Printers
Printer Implementation
supportedPaperSizes
Contains a list of paper sizes that the printer says it supports.
supportsMultipleCopies
Returns true if the printer supports printing multiple copies of the
same document in one job; otherwise false is returned. On most
systems this function will return true.
availablePrinters
Contains a list of names of supported printers connected to the
device
defaultPrinter
Contains a name of default printer.
status
Printer status as reported by the driver. Works only with HP printers.
For example, it returns ‘1014’ for a paper jam or ‘1009’ when the
printer is out of paper.
abort()
Aborts the current print run. Returns true if the print run was
successfully aborted and printerState will return Printer:Aborted;
otherwise returns false. It is not always possible to abort a print job.
For example, all the data has gone to the printer but the printer
cannot or will not cancel the job when asked to do.
newPage()
Tells the printer to eject the current page and to continue printing on
a new page. Returns true if this was successful; otherwise returns
false.
clearJobQueue()
Tells the printer to cancel all print jobs. Returns true on success;
otherwise returns false.
getPageMargins()
Returns the page margins for this printer for the left, top, right, and
bottom margins. The unit of the returned margins are specified with
the unit parameter.
setPageMargins()
Sets the left, top, right and bottom page margins for this printer. The
unit of the margins are specified with the unit parameter.
setCurrentPrinter()
Sets the printer identified by its name as a current printer. Returns
true on success, false on failure. List of all printer’s names can be
retrieved using availablePrinters attribute. Initially defaultPrinter is
considered current.
paperExactSize()
Returns the paper size as an array of two real numbers for page
width and height in specified length unit.
setPaperExactSize()
Sets the paper width and height in specified length unit.
print()
Prints document given by its URL. The URL can be local file system
path or an HTTP URL. Returns PrintJob object.
printCurrentPage()
Prints web page currently opened in a browser. Returns PrintJob
object.
printCurrentPageRect()
Prints rectangle of the current web page defined by left, top, width
and height arguments. Returns PrintJob object.
printElementBySelector()
Prints first element matching given CSS selector. Returns PrintJob
object.
setFromTo()
Sets the range of pages to be printed. Pages in a document are
numbered according to the convention that the first page is page 1.
All pages will be printed if the both arguments are 0.
Variable
Description