Feature demos · scenarios

Print feature demos

Printing scenarios organised around the real capabilities of Litchio Print Assistant. Every print job completes silently on your machine — no windows, no interruptions. Supports both local printing and remote printing, with jobs queuing automatically when the network drops and flushing on recovery. Every category is directly callable — below are the commands for each scenario.

Every capability lives on your own PC

Print jobs complete silently on your machine — no windows, no interruptions. Files are not uploaded back and forth, and no remote layout service waits in line.

  • Common formats print directly, layout intact
  • Fill a template with data and the waybill comes out; QR codes generate locally
  • No lost jobs when the network drops; automatic catch-up on recovery
A hand operating a laptop
Print jobs complete on this machine

How to call

The clientships no JS wrapper — only three real dispatch channels: REST /api/command (general), the convenience endpoints, native WebSocket /ws, plus the AO outbound long connection. Commands are "command name + JSON parameters"; without a command name it falls back to auto automatic detection.

// REST(通用命令端点)
POST /api/command
{ "cmd": "TemplatePrint",
    "html": "
收件人:{{name}}
", "data": {"name":"李"}, "printer":"HP LaserJet Pro M404" } // WebSocket(同端口 /ws,消息体同结构) ws://127.0.0.1:19861/ws → 发送上面的 JSON → 返回 Result JSON // AO 远程(终端出站长连接到云端中继,按 devId 路由)

Scenario list

Common printing scenarios boil down to the 6 categories below, each with its real commands and capabilities.

Network files & multi-format printing

Key capability: print download links directly, with automatic file-type detection.

  • PrintFile POST /api/command {"target":"https://files.example.com/report.pdf"}

    Print download links directly, with file type detected by extension and byte signature (PDF/Office/images/text/XPS/SVG/OFD)

  • AutoPrint /api/command without cmd

    Automatically recognises network files, local files and inline content, then handles each by category

  • PrintPdf POST /api/command {"target":"C:\\a.pdf","printer":"HP 5200"}

    Output straight to PDF on the chosen printer, layout intact

  • Images & text POST /api/command target=图片或文本

    Laid out and drawn by the client itself, with orientation, scaling, paper and margins under your control

Waybill / label templates

Paper, barcodes, text boxes and document-style templates.

  • TemplatePrint POST /api/command {\"html\":\"<div>Recipient: {{name}}</div>\",\"value\":{\"name\":\"Li\"}}

    HTML template plus JSON data filling template variables, with custom sizes such as 100×150

  • Template QR codes Generated locally inside the template, no internet needed

    QR codes are generated locally by the client, with no external service

  • PrintBarcode POST /api/command {"value":"123456","format":"code128"}

    Print 1D/2D barcodes directly

ESC/POS thermal

Send raw printer commands or read/write the port directly.

  • PrintEscPos POST /api/command {\"printer\":\"POSTEK2108\",\"text\":\"Receipt\"}

    Raw commands print thermal receipts and labels directly, barcodes and QR codes included

  • Network receipt printers printer accepts host:port (TCP 9100)

    Raw commands bypass the system print queue — ideal for dedicated ticket printers

AO remote / WAN printing

Remote printing: jobs are dispatched to the target device, with offline catch-up when the network drops (a channel capability, not a command name).

  • AO remote channel Terminals connect outbound to the relay

    Devices register and receive routed jobs; when the link drops jobs queue locally and flush on recovery

  • Offline catch-up Paper keeps coming out while the external link is down

    Jobs enter the local queue first, and the client catches up once the link returns

Virtual printing & documents

Output to PDF/XPS files, self-check drivers and read system information.

  • PrintToPdf / PrintToXps Print to PDF / XPS files

    Converted to printable documents first, layout intact

  • CheckPrinterDriver Printer & driver self-check

    Read-only listing of printers, driver names and availability — nothing is installed

  • GetPrinterList / SetDefaultPrinter Printer enumeration & defaults

    Quickly read client system and printer information

Queue / cleanup / updates

Print status and control, system maintenance, automatic updates.

  • QueuePrint / GetQueue / RetryJob Enqueue · query · retry

    Query and control print status

  • CleanDisk / CleanAppTemp Scan / clean / recycle bin / quota

    Scans temp files, caches and logs by category, with self-cleaning at startup

  • CheckUpdate / ApplyUpdate Fetches new versions automatically and replaces in place after verification

    Automatic updates leave user data untouched

For the full guide to printing from links, see Print from a link; for all print parameters and defaults, see Print parameters & defaults.

Scenario → command mapping

Find the real command for a printing scenario directly — quick to integrate.

ScenarioCapabilityReal command
Documents / images / PDFPrint the file directly on the chosen printerPrintFile / PrintPdf / AutoPrint
Waybills / labelsHTML template plus data variables, custom sizesTemplatePrint + local QR codes + PrintBarcode
Thermal receiptsRaw commands print directly, barcodes and QR codesPrintEscPos Thermal raw channel
remote printingDevice registration, job routing, offline catch-upAO remote channel (terminals connect outbound)
Virtual preview / documentsPrint to PDF/XPS files, layout intactPrintToPdf / PrintToXps
System / device informationEnumerate printers, machine fingerprint, self-check driversGetPrinterList / GetPrinterDetail / GetMachineFingerprint
Status & controlQuery, retry and cancel jobsQueue GetQueue / RetryJob / CancelJob
Open source · Free The client is free and open source; capabilities come from the service that runs with it on your machine

Licensed under the Mulan Permissive Software License, Version 2 (Mulan PSL v2). No bundled JS wrapper, no browser plugin and no extra server required. Source code and the full license text are available to read.

Learn about open source & how it runs →