Skip to content

Printing: from the server to your printers

Applications on your server can print straight to the printers in your office: a work order on a laser printer, a label on a label printer. The server prints, so it works the same from a PC, a tablet or a phone. Nothing has to be installed on those devices, and it works independently of a terminal server or open RDP sessions.

HD Services switches printing on for you and adds the printers. Once printing is on, Printers appears in the portal menu.

  • The firewall of your office has a port forward per printer that admits your server only. HD Services sets it up.
  • Where the printer supports it, the connection is encrypted (IPPS). Printers that only speak RAW (port 9100) or plain IPP, such as the print server of a DYMO label printer, receive their data unencrypted, through that forward which admits your server only. The page says which of the two each printer is.
  • Documents and labels are not kept: once printed, they are gone from the server. What remains is one line per print job (when, which print target, how many copies), never the content.

A printer is a device: an HP LaserJet, a Ricoh, a DYMO LabelWriter. HD Services adds printers and picks a tested combination of printer and driver per model. Most modern printers print without a driver (“driverless”). For a model without a tested combination, HD Services picks a driver from the print service’s full driver list (over 9,000 drivers, including PCL 6, PostScript and PDF) and tests it on paper. Such a driver prints A4 and one-sided by default.

A print target is what an application prints to: a printer plus its settings, such as “Office 1 letterhead” (tray 2) or “Warehouse colour”. The same printer with another tray or colour setting is a separate print target. Every print target has a fixed code (such as office-1-letterhead) the application uses.

You manage print targets yourself on the Printers page (or through the API or an assistant):

  • Add a print target: choose a printer and click Load its options. The form then shows the trays, colour settings and two-sided options that printer really has.
  • Copies by default and Most copies per print: how many copies a print gets when the application does not ask, and the maximum per print (10 by default, 50 for labels). An application with a bug never prints hundreds of pages.
  • The code of a print target cannot change afterwards: applications print to it.
State Meaning
Ready The printer answers and its print queue is set up.
Not reachable The printer is off, or the port forward does not admit your server (any more).
Setting up The print queue is set up as soon as the printer answers.
Blocked The printer’s certificate changed while the strict certificate check is on (see below).

When a printer reports a problem itself, such as no paper (media-empty), a paper jam or an empty toner, it shows under the state.

Test page prints a test page (or test label) with a frame. When the frame comes out complete, size and alignment are right.

Your server watches the printers and reports:

  • Printer not reachable: a printer did not answer three checks in a row. Goes to HD Services and to your own alert channels.
  • Printer needs attention: the printer reports no paper, a jam or an empty toner.
  • Printer certificate changed: for HD Services only. A printer with an encrypted connection presents another certificate than the one on record. That happens after a factory reset, a replacement and sometimes a firmware update; HD Services checks and records the new certificate. With the strict certificate check on for that printer, nothing is printed until then; with it off (the default), printing continues.
Task Who
Switching printing on, adding printers, the port forwards on the firewall HD Services
Creating and changing print targets, printing test pages you (or HD Services)
The print buttons and label layout in your application your developer, with the print API

An application prints with one HTTP request from the server: a PDF to $HDDEPLOY_PRINT_URL/v1/print/{print target}. Printing from an application describes it.