Open the print UI, print preview or page setup
browser_printOpens the Firefox print surface for a tab, letting you start printing, toggle print preview, or open page setup.
Instructions
Open the printing surface for a tab. MEASURED: PrintUtils is NOT a module — it is the global object defined by chrome/toolkit/content/global/printUtils.js and reachable as PrintUtils on the browser window. It offers startPrintWindow, togglePrintPreview, showPageSetup, getPrintSettings and handleSystemPrintDialog (there is no print()/showPrintDialog()). Use browser_pdf when you want the PDF without any UI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | print = open print UI; preview = toggle preview; page-setup = page setup dialog |