Is your printer wireless? Typically, you need to connect a thermal printer to a computer with a USB or serial port. Then, you manually encode the text you want to print and send a print command to your thermal printer. However, you just clicked print on a PDF, and it printed like a regular printer. How is that? Can you please mention the model name of your printer?
You can get all source code with videos tuts: www.udemy.com/course/php-for-beginners-to-inventory-pos-sales-project-adminlte-dashboard/?referralCode=59B5F4467445E5F8CE07