Part-DB-server/docs/usage
Jaime Laborda 218b394b13 Add optional direct thermal printing to Niimbot printers from the label generator
Adds a "Print to Niimbot" panel to the label generator dialog that sends the
generated label straight to a Niimbot thermal printer (e.g. B1) over Web
Bluetooth, without a PDF print dialog or printer driver.

The existing server-side DomPDF label is reused as-is: a new Stimulus controller
rasterizes the PDF preview page-by-page with pdf.js at the printer's native
resolution, converts it to a 1-bit bitmap and prints it via the niimbluelib
library. No changes to the PHP label pipeline are required.

The feature is disabled by default and gated behind the NIIMBOT_ENABLED
environment variable, since it is only useful for users who own such a printer.

- Add @mmote/niimbluelib and pdfjs-dist dependencies
- New assets/controllers/pages/niimbot_print_controller.js
- Print options (copies, density, label type, rotation, B/W threshold) in the
  label dialog, gracefully disabled when Web Bluetooth is unavailable
- NIIMBOT_ENABLED env flag (off by default), wired through parameters.yaml and a
  Twig global, documented in .env
- English translations and documentation

Requires a Chromium-based browser and a secure context (HTTPS or localhost).
2026-07-16 11:39:38 +02:00
..
ai.md Added ollama as AI provider 2026-06-21 20:41:24 +02:00
backup_restore.md Improve documentation clarity and fix outdated information (#1129) 2025-12-06 22:40:45 +01:00
bom_import.md Added documentation about the new BOM file types 2025-09-06 23:34:47 +02:00
console_commands.md Enhance KiCad integration: API v2, batch EDA editing, field export control (#1241) 2026-03-01 22:10:13 +01:00
eda_integration.md Add custom KiCad autocomplete list settings (#1342) 2026-04-15 00:01:00 +02:00
getting_started.md Improve documentation clarity and fix outdated information (#1129) 2025-12-06 22:40:45 +01:00
import_export.md Improve documentation clarity and fix outdated information (#1129) 2025-12-06 22:40:45 +01:00
index.md Moved remaining docs from github wiki to pages 2023-02-07 13:05:55 +01:00
information_provider_system.md Mention browser plugin in documentation 2026-05-19 17:18:21 +02:00
keybindings.md add option to disable keybindings fixing #1251 (#1254) 2026-02-28 22:07:14 +01:00
labels.md Add optional direct thermal printing to Niimbot printers from the label generator 2026-07-16 11:39:38 +02:00
scanner.md Added documentation about the barcode scanner 2026-03-01 18:11:58 +01:00
tips_tricks.md Improve documentation clarity and fix outdated information (#1129) 2025-12-06 22:40:45 +01:00
update_manager.md Add Update Manager documentation 2026-02-03 11:55:53 +01:00