new receipt formats
This commit is contained in:
@@ -322,11 +322,17 @@ public class HtmlPrinter : IEpsonPrinter
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public Task CutAsync()
|
||||
public Task CutAsync(bool fullCut = true)
|
||||
{
|
||||
EnsureConnected();
|
||||
_logger?.LogInformation("HtmlPrinter: Cutting paper");
|
||||
WriteHtmlFile();
|
||||
if(fullCut)
|
||||
WriteHtmlFile();
|
||||
else
|
||||
{
|
||||
// add scissors icon for partial cut
|
||||
_content.AppendLine("<div class=\"cut\"><span class=\"scissors\">✂️</span></div>");
|
||||
}
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user