Stay organized with collections Save and categorize content based on your preferences.
DescriptionThe chrome.printerProvider
API exposes events used by print manager to query printers controlled by extensions, to query their capabilities and to submit print jobs to these printers.
printerProvider
description
string optional
Printer's human readable description.
Unique printer ID.
Printer's human readable name.
"OK"
Specifies that the operation was completed successfully.
"FAILED"
Specifies that a general failure occured.
"INVALID_TICKET"
Specifies that the print ticket is invalid. For example, the ticket is inconsistent with some capabilities, or the extension is not able to handle all settings from the ticket.
"INVALID_DATA"
Specifies that the document is invalid. For example, data may be corrupted or the format is incompatible with the extension.
The document content type. Supported formats are "application/pdf"
and "image/pwg-raster"
.
Blob containing the document data to print. Format must match contentType
.
ID of the printer which should handle the job.
Print ticket in CJT format.
The CJT reference is marked as deprecated. It is deprecated for Google Cloud Print only. is not deprecated for ChromeOS printing.
The print job title.
chrome.printerProvider.onGetCapabilityRequested.addListener(
callback: function,
)
Event fired when print manager requests printer capabilities.
ParametersThe callback
parameter looks like:
(printerId: string, resultCallback: function) => void
The resultCallback
parameter looks like:
(capabilities: object) => void
chrome.printerProvider.onGetPrintersRequested.addListener(
callback: function,
)
Event fired when print manager requests printers provided by extensions.
ParametersThe callback
parameter looks like:
(resultCallback: function) => void
The resultCallback
parameter looks like:
(printerInfo: PrinterInfo[]) => void
chrome.printerProvider.onGetUsbPrinterInfoRequested.addListener(
callback: function,
)
Event fired when print manager requests information about a USB device that may be a printer.
Note: An application should not rely on this event being fired more than once per device. If a connected device is supported it should be returned in the onGetPrintersRequested
event.
The callback
parameter looks like:
(device: usb.Device, resultCallback: function) => void
The resultCallback
parameter looks like:
(printerInfo?: PrinterInfo) => void
chrome.printerProvider.onPrintRequested.addListener(
callback: function,
)
Event fired when print manager requests printing.
ParametersThe callback
parameter looks like:
(printJob: PrintJob, resultCallback: function) => void
The resultCallback
parameter looks like:
(result: PrintError) => void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-11 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4