Stay organized with collections Save and categorize content based on your preferences.
Important: This API works only on ChromeOS. DescriptionUse the chrome.printingMetrics
API to fetch data about printing usage.
printingMetrics
"BLACK_AND_WHITE"
Specifies that black and white mode was used.
"COLOR"
Specifies that color mode was used.
"ONE_SIDED"
Specifies that one-sided printing was used.
"TWO_SIDED_LONG_EDGE"
Specifies that two-sided printing was used, flipping on long edge.
"TWO_SIDED_SHORT_EDGE"
Specifies that two-sided printing was used, flipping on short edge.
Height (in micrometers) of the media used for printing.
Vendor-provided ID, e.g. "iso_a3_297x420mm" or "na_index-3x5_3x5in". Possible values are values of "media" IPP attribute and can be found on IANA page .
Width (in micrometers) of the media used for printing.
Displayed name of the printer.
The source of the printer.
The full path for the printer. Contains protocol, hostname, port, and queue.
The source of the printer.
Enum"USER"
Specifies that the printer was added by user.
"POLICY"
Specifies that the printer was added via policy.
The job completion time (in milliseconds past the Unix epoch).
The job creation time (in milliseconds past the Unix epoch).
The ID of the job.
The number of pages in the document.
The info about the printer which printed the document.
The status of the printer.
The settings of the print job.
Source showing who initiated the print job.
ID of source. Null if source is PRINT_PREVIEW or ANDROID_APP.
The final status of the job.
The title of the document which was printed.
The source of the print job.
Enum"PRINT_PREVIEW"
Specifies that the job was created from the Print Preview page initiated by the user.
"ANDROID_APP"
Specifies that the job was created from an Android App.
"EXTENSION"
Specifies that the job was created by extension via Chrome API.
"ISOLATED_WEB_APP"
Specifies that the job was created by an Isolated Web App via API.
Specifies the final status of the print job.
Enum"FAILED"
Specifies that the print job was interrupted due to some error.
"CANCELED"
Specifies that the print job was canceled by the user or via API.
"PRINTED"
Specifies that the print job was printed without any errors.
The requested color mode.
The requested number of copies.
The requested duplex mode.
The requested media size.
chrome.printingMetrics.getPrintJobs(): Promise<PrintJobInfo[]>
Returns the list of the finished print jobs.
Events onPrintJobFinishedchrome.printingMetrics.onPrintJobFinished.addListener(
callback: function,
)
Event fired when the print job is finished. This includes any of termination statuses: FAILED, CANCELED and PRINTED.
ParametersThe callback
parameter looks like:
(jobInfo: PrintJobInfo) => 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