Level 73
You could probably use ajax to send the pdf to the printer, it most likely has some kind of api built in, or you can use a printer server and queue it up there for printing.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have a button labeled "Print." When I click the print button, I want to create a PDF or text file and automatically print it on a Windows OS without opening a print dialog. The printer is a thermal printer.
How can I achieve this in Laravel 11? I've also tried using the mike42/escpos-php package via USB and IP address, but it didn't work for me
Thank you so much!
Please or to participate in this conversation.