KJ said:
Would anyone have a list of printer commands to use within printf for
a deskjet printer in C. I have worked out that bold is
\x1B\x28\x73\x33\x42 but i would like to have a list to perform other
commands like font size, etc...
Any help would be appreciated.
HP Printers use a language called PCL. It is based on escape sequences:
an ESCAPE character followed by other bytes or characters. Search
their website for more information. They do have a book about 2 inches
thick describing the language.
Some HP printers also use a language called Postscript. This is
Page Description Language developed by Adobe, Inc. They too have a
thick book available that describes the language. Check out their
websidte at
http://www.adobe.com.
However, many platforms use a "driver" between the printer and your
application. The driver converts operating system commands (function
calls) into the printer's language. This is a lot more productive
than sending the actual printer commands. In the Postscript class
that I attended, they said that very, very few people write in
Postscript; everybody else uses the drivers.
--
Thomas Matthews
C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq:
http://www.parashift.com/c++-faq-lite
C Faq:
http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book