A small, security-safe guide for printing documents and generated diagrams on macOS via CUPS.
- Print from the command line reliably.
- Prefer black-and-white and light mode assets to reduce ink usage.
- Keep assets simple and legible (diagram-style, high contrast).
List available printers:
lpstat -pPick the printer name you want to target (example placeholder below):
PRINTER_NAME="Your_Printer_Name"lp -d "$PRINTER_NAME" /path/to/file.txtlp -d "$PRINTER_NAME" /path/to/file.pdflp -d "$PRINTER_NAME" /path/to/image.pnglpstat -W not-completed -o "$PRINTER_NAME"cancel JOB_ID
# Example:
# cancel Your_Printer_Name-46Printing in B&W depends on the driver/PPD. First, list printer options:
lpoptions -p "$PRINTER_NAME" -lCommon knobs to look for (names vary):
print-color-mode(e.g.monochrome)ColorModel(e.g.Gray)sides(one-sided,two-sided-long-edge)
Example (only if supported):
lp -d "$PRINTER_NAME" \
-o print-color-mode=monochrome \
-o sides=one-sided \
/path/to/file.pdfIf your driver doesn’t expose reliable B&W toggles, the safest approach is to generate assets that are already black-and-white.
Any image generator can work. In practice, a strong “good enough” baseline is a modern text-to-image model capable of clean diagram output.
Prompt checklist:
- White background (light mode)
- Black line art / black text only
- No gradients, no shading
- Minimalist vector/diagram style
- High contrast, large readable labels
Example prompt snippet:
“Black-and-white diagram, white background, high-contrast line art, minimalist vector icons, no shading/gradients, simple labels sized for printing.”
- Generate a B&W, light-mode diagram (PNG or PDF).
- Save it locally.
- Print:
lp -d "$PRINTER_NAME" /path/to/diagram.png- Verify queued job:
lpstat -W not-completed -o "$PRINTER_NAME"- A “blank” page still feeds one sheet; keep content minimal.
- If image scaling is off, convert to a 1‑page PDF at a known page size before printing.