From 7e7e3b3414b28e3d23401f5a500406cdb2dc1dd9 Mon Sep 17 00:00:00 2001 From: ChristofK Date: Wed, 16 Jul 2025 18:40:02 +0200 Subject: [PATCH] Add layout adjustment options: vertical/horizontal offset, label height, and scale. This commit adds several new customization options to improve label alignment and output quality when printing QR code labels: - Introduced vertical and horizontal offset inputs to shift the entire label grid for fine alignment. - Added label height input to adjust the height of each individual label in millimeters. - Added content scale input to resize the entire label content (QR code and text). Also updated the UI to include explanatory text for each of these parameters, and added a summary paragraph to the main instructions describing how each setting affects the layout. --- index.html | 108 ++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 95 insertions(+), 13 deletions(-) diff --git a/index.html b/index.html index 2bfaea1..f638852 100644 --- a/index.html +++ b/index.html @@ -67,6 +67,16 @@ by clicking the "Print Labels" button.

+

+ To fine-tune the label alignment for your specific printer or label sheet, you can adjust the following parameters: + Vertical Offset moves the entire label grid up or down on the page, while + Horizontal Offset shifts it left or right. + Label Height controls the height of each individual label, and + Content Scale resizes the text and QR code inside each label. + The Show Border option adds a visible border around each label, which can help with calibration and print alignment. + Use these settings to ensure the labels are printed accurately on your sheet. +

+

One known limitation of this tool is that it only works on Google Chrome and possibly Firefox. @@ -153,6 +163,18 @@ class="block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500" /> +

+
+ +
+

+ The following parameters are useful for debugging or to calibrate the print out. +

+
+ +
@@ -169,14 +191,54 @@ >Show Border
-
+ +
+ +
+ + +

- This may be useful for debugging or to calibrate the print out. + Adjusts the vertical position of the entire label sheet on the page. Use this if the labels are printing too high or too low.

+
+ + +
+

+ Adjusts the horizontal position of the entire label sheet on the page. Use this if the labels are printing too far to the left or right. +

+
+
+
+ + +
+

+ Sets the height of each individual label in millimeters. Adjust this if the labels don't align vertically with the label sheet. +

+
+
+
+ + +
+

+ Scales the entire content inside each label. Use this if the text or QR code is too large or too small. +

+
+
+
-
+
-
    +