Remove dead code, DEVMODE overrides, and PNG fallback; use printer default settings

This commit is contained in:
2026-02-24 09:19:58 +02:00
parent 7a77199fcf
commit f7833ed4b9
5 changed files with 145 additions and 315 deletions

View File

@@ -49,8 +49,8 @@ class PDFLabelGenerator:
"""
self.label_width = label_width * cm
self.label_height = label_height * cm
# Force landscape: ensure width > height
self.page_size = landscape((self.label_height, self.label_width)) if self.label_width > self.label_height else (self.label_width, self.label_height)
# label_width (3.5 cm) > label_height (2.5 cm) → page is already landscape
self.page_size = (self.label_width, self.label_height)
self.dpi = dpi
self.margin = 1 * mm # Minimal margin