mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-03 04:25:52 -05:00
Document.print without jobOptions.file now prints to the printer that PrintOptions.printerName names, or to the default printer. A run started in the app gets a bounded list of the print service's printer names (at most 256, names up to 512 bytes, no control characters), and app.printerList gives a Printer object for each. A name must match a listed printer exactly. print composes each job as a print-ready PDF and holds it until the run ends. When the run's changes are kept, a dialog lists each job's document, printer and pages, and only the person at the keyboard can choose Print: ui.dialog.confirm and synthetic input are refused. Cancel drops the jobs. A failed or stopped run sends nothing, and no job is sent if one of its printers is no longer installed. A run prepares at most 4 jobs, 100 pages and 32 MiB, and pages are counted before a job is composed. The web, MCP and the command line cannot print to a printer from a script. Docs: docs/mcp.md, docs/target-app-parity.md.