Silent printing on Kylin desktop

Deploy the deb client on Kylin and use web-print-pdf—same front-end code as Windows. See also Linux deployment.

Relation to generic Linux deploy

版本平台打印后端安装包
Windows 版Windows 10/11内置静默打印引擎.exe
Linux 版x64 / arm64系统标准打印服务.deb / .rpm
macOS 版macOS 11+CUPS.dmg

Kylin is Linux-based—match deb architecture (x64/arm64) and intranet policies.

Install steps (deb)

  1. Download deb from download page
  2. Install and start the client
  3. Confirm WebSocket is listening
  4. Integrate printHtml

Troubleshooting

Common intranet issues:

  • Client autostart
  • Local WebSocket reachability
  • Security software blocking ports
  • Preflight getConnectStatus()

Front-end integration

Same as Windows/macOS:

npm install web-print-pdf
import webPrintPdf from 'web-print-pdf';

await webPrintPdf.printHtml(
  '<h1>Hello Windows</h1>',
  { paperFormat: 'A4', printBackground: true },
  { printerName: '默认打印机' }
);

Same npm API as Windows—only the installer differs.

Deployment notes

  • Mixed Kylin + Windows fleets share one print codebase.
  • PoC margins and printer lists for fiscal forms.
  • Migrating from Lodop: migration guide.

Pre-go-live checklist

  • deb arch (x64/arm64) matches Kylin build
  • Client autostart & WebSocket port reachable
  • Browser/Electron can reach 127.0.0.1
  • PoC margins & printer list vs Windows
  • Ops docs note Lodop parallel policy if any

How this page fits with related guides

FAQ

Kylin V10 supported?

Yes—use the current deb from the official download page.

Same as UOS?

Same API—see <a href="../uos-print/">UOS guide</a> for installer notes.

Remote labels?

Yes—<a href="../wms-remote-print/">WMS remote print</a>.

Vue integration?

See <a href="../vue-silent-print/">Vue silent printing</a>.

Share front-end with Windows HQ?

Yes—same printHtml code; only the desktop installer differs per OS. See Vue guide.

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