tualo / pug
pug for tualo office
1.4.23
2026-11-06 07:36 UTC
Requires
- chillerlan/php-qrcode: ^6.0.1
- dompdf/dompdf: ~3.1.0
- michelf/php-markdown: ^2.0.0
- picqer/php-barcode-generator: ~3.2.2
- pug-php/pug: ~3.5.0
- tualo/ds: ^1.5.7
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 1.4.23
- 1.4.22
- 1.4.21
- 1.4.20
- 1.4.19
- 1.4.18
- 1.4.17
- 1.4.16
- 1.4.15
- 1.4.14
- 1.4.13
- 1.4.12
- 1.4.11
- 1.4.10
- 1.4.9
- 1.4.8
- 1.4.7
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.11
- 1.3.10
- 1.3.9
- 1.3.8
- 1.3.7
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.3
- 1.0.2
- 1.0.1
This package is auto-updated.
Last update: 2026-11-06 07:37:11 UTC
README
docker setup
apt update
apt install chromium
./tm configuration --section browsershot --key noSandbox --value 1
./tm configuration --section browsershot --key chrome_path --value $(which chromium)
./tm configuration --section browsershot --key node_binary --value $(which node)
./tm configuration --section browsershot --key npm_binary --value $(which npm)
Einstellungen
Alle Einstellungen liegen in der Sektion browsershot:
./tm configuration --section browsershot --key <key> --value <value>
| Key | Default | Beschreibung |
|---|---|---|
use |
leer | Leer: Report wird vorab lokal gerendert (PUG-Export, Ermittlung des <title>). Beliebiger Wert: Vorab-Rendering entfällt. |
remote_service |
leer | Basis-URL eines externen PDF-Dienstes (POST /pdf mit {url, cookies}). Schlägt der Dienst fehl, wird lokal per Browsershot gerendert. |
remote_service_timeout |
3.0 |
Timeout für den Remote-Service in Sekunden. |
chrome_path |
– | Pfad zur Chrome/Chromium-Binary. |
node_binary |
– | Pfad zur Node-Binary. |
npm_binary |
– | Pfad zur npm-Binary. |
noSandbox |
0 |
1: Chrome mit --no-sandbox starten (nötig in Docker bzw. als root). |
useHeadless |
0 |
1: neuen Headless-Modus von Chrome verwenden. |
Systemcheck
- CLI:
./tm systemcheckprüft proc_open, tempPath, node/npm, puppeteer, Chrome, Sandbox, Remote-Service und rendert eine Musterseite aus HTML. - Web (ohne Anmeldung):
GET /remote/checkführt dieselben Prüfungen aus und rendert zusätzlich/remote/check/sampleüber die URL – damit wird auch geprüft, ob der Server sich selbst erreicht. Antwort: JSON mitsuccess,errorsundchecks.
Hinweise
- Der Browser ruft
/pugreporthtml/{tablename}/{template}/{id}mit der Session des Aufrufers auf. Die PHP-Session wird dafür während der PDF-Erzeugung freigegeben, sonst blockiert der Session-Lock (Navigation timeout). - Bei OAuth-Sitzungen wird statt des Session-Cookies ein Einmal-Token in die URL eingebaut und danach wieder entfernt.
- Der Server muss sich selbst unter
REQUEST_SCHEME://HTTP_HOSTerreichen können.
pug
QR code generation uses chillerlan/php-qrcode ^6.0.1 and requires PHP 8.2+
with the mbstring extension. Barcode::qr() returns SVG markup by default;
custom output options can be passed as its second argument using the v6 API
(for example, outputInterface instead of outputType).