adapted kitchen to thermal printer
This commit is contained in:
@@ -82,7 +82,7 @@ public class EpsonPrintService: IPrintService
|
||||
await printerAdapter.SetFontSizeAsync(configuration.FontSize);
|
||||
|
||||
// Convert receipt content to print commands using the factory
|
||||
var converter = _receiptConverterFactory.Create(job.Document.ReceiptType, lineWidth: 48, bigFontLineWidth: 24);
|
||||
var converter = _receiptConverterFactory.Create(job.Document.ReceiptType, printerId.Value);
|
||||
var commands = converter.Convert(job.Document.Content);
|
||||
await printerAdapter.PrintAsync(commands);
|
||||
await Task.Delay(200);
|
||||
|
||||
Reference in New Issue
Block a user