mike42 / escpos-php

PHP library for printing to ESC/POS-compatible thermal and impact printers
Other
2.57k stars 862 forks source link

Problem to print PDF on the Printer #590

Closed matheusfols closed 6 years ago

matheusfols commented 6 years ago

Hi Mike, how are you?

Could you help me with a problem. I'm using example / print-from-pdf.php I made the connectors changes for new NetworkPrintConnector ()

However, I did not print correctly. I printed a bunch of strange characters.

Do I need any other settings to print the PDF directly to the printer?

Thank you.

mike42 commented 6 years ago

Not specifically for PDFs, but this does suggest that you could be using the defaults with something other than an Epson-branded ESC/POS printer.

There are no details in your post about the hardware or software in your setup, so my suggestion would be to read over the README again, and to look at the sections on printer profiles, plus the alternatives to the graphics() command.

matheusfols commented 6 years ago

Thanks for the response Mike.

I'm using the Kiosk printer BK-T681 Elgin

mike42 commented 6 years ago

Just with a web search, it's not clear to me whether the BK-T681 is an ESC/POS-compatible printer. Check your available documentation for the word "ESC/POS". If it's not in there, you are most likely wasting your time trying to get this library to work with it.

jaimru-farzan commented 1 year ago

Hi @mike42, I am facing the same problem. I am using EPSON TM-82III. I am able to print raw text perfectly. But while printing pdf it's printing strange characters. Can you help me in this?

s2b-git commented 10 months ago

graphics() somehow works very slowly with PDF files