Complete label printer redesign: file monitoring, SVG templates, sharp print quality

- Redesigned GUI for automatic file monitoring workflow
- Changed label format to 35x25mm landscape
- Implemented SVG template support with variable substitution
- Added configuration auto-save/load (conf/app.conf)
- Added system tray minimize functionality
- Fixed print quality: landscape orientation, vector fonts, 600 DPI
- Auto-clear file after print to prevent duplicates
- All popups auto-dismiss after 2-3 seconds
- Semicolon separator for data format (article;nr_art;serial)
- SumatraPDF integration with noscale settings
- Printer configured for outline fonts (sharp output)
- Reorganized documentation into documentation/ folder
This commit is contained in:
NAME
2026-02-12 22:25:51 +02:00
parent 0743c44051
commit 8954135f93
51 changed files with 1209 additions and 6396 deletions

67
check_printer_quality.ps1 Normal file
View File

@@ -0,0 +1,67 @@
# Check and configure printer quality settings for Labels printer
$printerName = "Labels"
Write-Host "=== Checking Printer: $printerName ===" -ForegroundColor Cyan
Write-Host ""
# Get printer object
$printer = Get-Printer -Name $printerName -ErrorAction SilentlyContinue
if ($null -eq $printer) {
Write-Host "ERROR: Printer '$printerName' not found!" -ForegroundColor Red
exit 1
}
Write-Host "Printer Name: $($printer.Name)" -ForegroundColor Green
Write-Host "Driver Name: $($printer.DriverName)" -ForegroundColor Green
Write-Host "Port Name: $($printer.PortName)" -ForegroundColor Green
Write-Host ""
# Get printer configuration
try {
$printerConfig = Get-PrintConfiguration -PrinterName $printerName
Write-Host "=== Current Print Configuration ===" -ForegroundColor Cyan
Write-Host "Print Quality: $($printerConfig.PrintQuality)"
Write-Host "Color Mode: $($printerConfig.Color)"
Write-Host "Duplex Mode: $($printerConfig.DuplexingMode)"
Write-Host ""
} catch {
Write-Host "Could not retrieve print configuration: $_" -ForegroundColor Yellow
}
# Get printer driver properties
Write-Host "=== Checking Printer Properties ===" -ForegroundColor Cyan
try {
$printerProperties = Get-PrinterProperty -PrinterName $printerName
foreach ($prop in $printerProperties) {
Write-Host "$($prop.PropertyName): $($prop.Value)"
}
} catch {
Write-Host "Could not retrieve printer properties: $_" -ForegroundColor Yellow
}
Write-Host ""
Write-Host "=== Recommendations ===" -ForegroundColor Cyan
Write-Host "1. Open Windows Settings > Devices > Printers & scanners"
Write-Host "2. Click on 'Labels' printer"
Write-Host "3. Click 'Manage' > 'Printing preferences'"
Write-Host "4. Look for quality settings and set to:"
Write-Host " - Print Quality: Best/Highest/600 DPI or higher"
Write-Host " - Graphics Mode: Vector or High Quality"
Write-Host " - Dithering: None (for sharp text)"
Write-Host "5. Save settings and try printing again"
Write-Host ""
Write-Host "Would you like to try setting print quality to high? (Y/N)" -ForegroundColor Yellow
$response = Read-Host
if ($response -eq 'Y' -or $response -eq 'y') {
try {
# Try to set print quality to high
Set-PrintConfiguration -PrinterName $printerName -PrintQuality 4 # 4 = High quality
Write-Host "Print quality set to HIGH" -ForegroundColor Green
} catch {
Write-Host "Could not set print quality automatically: $_" -ForegroundColor Yellow
Write-Host "Please set manually through printer preferences" -ForegroundColor Yellow
}
}