""" Quick test script for label printing with landscape orientation """ import os from print_label import create_label_pdf, print_to_printer print("=" * 60) print("Label Printer Test - Landscape Orientation") print("=" * 60) print() # Test data test_data = "TEST-LAND;123456;SN-2026" print("1. Generating PDF from SVG template...") pdf_file = create_label_pdf(test_data) print(f" ✓ PDF created: {pdf_file}") print() # Check file size if os.path.exists(pdf_file): size = os.path.getsize(pdf_file) print(f"2. PDF file size: {size} bytes") print() print("3. To print:") print(" a) Open the PDF and verify it's 35mm x 25mm landscape") print(" b) Print using your thermal printer (pre-configured for 35mm x 25mm)") print(" c) Or use SumatraPDF command:") print() print(f' .\\conf\\SumatraPDF.exe -print-to "YourPrinterName" "{pdf_file}" -print-settings noscale -silent -exit-when-done') print() print("=" * 60) print("For Microsoft Print to PDF:") print(" - This printer uses standard page sizes (A4/Letter)") print(" - The label will be placed on a larger page") print(" - For actual label printing, use a thermal printer") print("=" * 60)