print-server

command
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Command print-server is a sample (docs/examples/print-server): a business application that prints invoices through a print server it embeds (package print/server, the server of bdf printd). It fills an invoice template (an Excel workbook with tags, package form) with what is typed on its page, puts the .bdf in the spool's queue, and shows the jobs as the spool sends them and the printer prints them (the server's /api/v1/events).

The spool keeps the jobs in one file, sends them to the printer, and retries a printer that is not reached; a job is printed once even when the program is stopped while it is being sent. Without a printer at hand, -fake-printer prints on bdf's fake IPP printer, in the same process.

cd examples/print-server && go run . -fake-printer
open http://127.0.0.1:8083/

go run . -printer ipps://printer.example.local/ipp/print

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL