Hotel check-in & pass silent printing

Hotel PMS web apps often print check-in forms, visitor passes, and parking slips without browser dialogs. Install the desktop client, npm i web-print-pdf, and printHtml to a named front-desk printer. See visitor pass and parking pass demos.

Print architecture

Front-desk browser → printHtml → local client → desk printer. Chains share HTML templates; each store sets printerName.

Typical scenarios

Check-in

A4 registration forms

Use A4 paperFormat and bind the front-desk laser. Form-style demos in the sample center help with first PoC.

Chains

Multi-property rollout

Same npm + templates; per-store printer names and branding. Autostart the client; preflight with getConnectStatus before check-in.

Integration steps

  1. Install the client on the front-desk PC and enable autostart
  2. npm install web-print-pdf in the PMS front end
  3. Author HTML (start from visitor-pass demo)
  4. Bind printOptions.printerName
  5. Sample layouts with preview; surface errors via formatPrintError

Front-desk printHtml sample

await webPrintPdf.printHtml(
  passHtml,
  { paperFormat: 'A4', printBackground: true, margin: { top: '8mm', bottom: '8mm', left: '10mm', right: '10mm' } },
  { printerName: 'Front desk laser', copies: 1 }
);

Parameter tips

  • A4 registration: paperFormat: A4 + sensible margins
  • Passes: custom width/height, zero HTML margins
  • Named printer so jobs do not hit the back office
  • Chains: pin npm major; parameterize property name in templates

Selection notes

Use window.print only for rare dialog-OK jobs; peak front-desk silent print and named printers need the local client. Cloud print that leaves the property with guest data needs a separate compliance review.

Troubleshooting

  • No output → client running / getConnectStatus
  • Wrong printer → match printerName to the OS printer name
  • Layout offset → preview, then tune pdfOptions margins

Related guides on this site

FAQ

Is the desktop client required at the front desk?

Yes for silent print on that PC—the npm package only submits jobs.

Can one PC print multiple form types?

Yes—different HTML templates and printerName values.

Similar to property visitor printing?

Same architecture; see the property-service demo plus this page’s pass patterns.

Domestic OS (Kylin/UOS) properties?

Install the deb client; front-end API matches Windows stores.

Dropped jobs at peak?

Preflight getConnectStatus; block check-in UX on failure so you never check in without a printed form.

Client deployment by platform

The same web-print-pdf front-end runs on Windows, macOS, and Linux/domestic OS—install the matching client on each desktop.

Download client — free trial View npm package Documentation