Closed beiaduo closed 1 year ago
v3.0.0
v9
PrintNode
$receipt = (string) (new ReceiptPrinter) ->centerAlign() ->text('My heading') ->leftAlign() ->line() ->twoColumnText('Item 1', '2.00') ->twoColumnText('Item 2', '4.00') ->feed(2) ->centerAlign() ->barcode('1234') ->cut();
// Now send the string to your receipt printer Printing::newPrintTask() ->printer($receiptPrinterId) ->content($receipt) ->send();
just copy code
job ID :2989074766
This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Laravel Printing Version
v3.0.0
Laravel Version
v9
Print Driver
PrintNode
Bug description
$receipt = (string) (new ReceiptPrinter) ->centerAlign() ->text('My heading') ->leftAlign() ->line() ->twoColumnText('Item 1', '2.00') ->twoColumnText('Item 2', '4.00') ->feed(2) ->centerAlign() ->barcode('1234') ->cut();
// Now send the string to your receipt printer Printing::newPrintTask() ->printer($receiptPrinterId) ->content($receipt) ->send();
Steps to reproduce
just copy code
Relevant log output