Add template selection and multiple copy printing features
- Implemented template selection: type 0=OK (green), type 1=NOK (red) - Added multiple copy printing (1-100 copies) - Extended file format to 5 fields: ARTICLE;NR_ART;SERIAL;TYPE;COUNT - Created OK/NOK SVG templates with visual distinction - Fixed PDF landscape orientation issues - Updated SumatraPDF to use noscale for exact dimensions - Auto-generate conf folder with default templates on first run - Made pystray optional for system tray functionality - Updated build scripts for Python 3.13 compatibility (Kivy 2.3+, PyInstaller 6.18) - Added comprehensive build documentation - Improved printer configuration guidance
This commit is contained in:
20
check_pdf_size.py
Normal file
20
check_pdf_size.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from reportlab.lib.pagesizes import landscape
|
||||
from reportlab.lib.utils import ImageReader
|
||||
from reportlab.pdfgen import canvas
|
||||
import os
|
||||
|
||||
# Check the test PDF file
|
||||
if os.path.exists('test_label.pdf'):
|
||||
file_size = os.path.getsize('test_label.pdf')
|
||||
print(f'test_label.pdf exists ({file_size} bytes)')
|
||||
print(f'Expected: 35mm x 25mm landscape (99.2 x 70.9 points)')
|
||||
print(f'')
|
||||
print(f'Open test_label.pdf in a PDF viewer to verify:')
|
||||
print(f' - Page size should be wider than tall')
|
||||
print(f' - Content should be correctly oriented')
|
||||
print(f'')
|
||||
print(f'In Adobe Reader: File > Properties > Description')
|
||||
print(f' Page size should show: 3.5 x 2.5 cm or 1.38 x 0.98 in')
|
||||
else:
|
||||
print('test_label.pdf not found')
|
||||
|
||||
Reference in New Issue
Block a user