Hello.
I am developing a web app that needs to print stamps on documents. First I tried to generate a PDF and print with the applet but the results are poor. Words broken and unreadable. Later I tried with the RAW printing. This printer is compatible with ESC/P and I have downloaded the attached manual to try to generate the stamp but I have some handicaps that someone with experience I hope that can help me.
First the printer starts printing without waiting to put the paper. Second I need the possibility to rotate. Third a method to make copies of the documents. The first two problems are in the documentation but I don't understand how to put in Hex and use it.
qz.append("\x1B\x52\x07"); // 1
qz.append("__________________________________ \r\n");
qz.append("\x1B\x21\x08"); // 2
qz.append(" NAME OF THE \r\n");
qz.append(" COMPANY \r\n");
qz.append("---------------------------------- \r\n");
qz.append("\x1B\x21\x16"); // 2
qz.append(" 2345 ");
qz.append("02/05/2014 14:20\r\n");
qz.append("\x1B\x21\x01"); // 3
qz.append("\x1B\x21\x08"); // 2
qz.append("---------------------------------- \r\n");
qz.append(" Registre de Sortida \r\n");
qz.append("__________________________________ \r\n");
qz.append("\x1D\x56\x41"); // 4
qz.append("\x1B\x40"); // 5
qz.append("\x1B\x46\x01"); // 5
qz.append("\x1B\x71"); // 5
Thanks in advance and sorry for my poor english.