In our old application (QNX 4.25, Photon 1.13) we used LPT connected laser printer (PCL compatible) for printing of plain text data tables on operator’s demand. Because the tables were too wide to fit into common A4 paper sheet (even landscape oriented) before printing each text table (operator’s pressing the “Print Table” icon) we have sent control codes to the printer to change the font size, pitch etc.:
echo “\033(10U\033(s0p16.67h8…” >/dev/par
We had to change the printer for a network printer (own IP address) Samsung Xpress C467W. We succeeded to set it up for printing the tables:
lpr -Pprintername filename, but the font size is default and they won’t fit the paper width (landscape paper orientation is not sufficient).
Question: Is there a way to send some control characters to [Samsung Xpress C467W] network printer to change the default font/pitch to a small one?
Is it even possible to send escape codes to a network printer with own IP address?
What should the printer be compatible with to understand (accept) Escape control sequences? The printer is PCL and PostScript compatible - we succeeded in Photon graphics (window screenshot) color printing with both Pcl and Ps filters.
Or is there some other way to force the network printer [Samsung Xpress C467W] to change the text font size/pitch before plain text file printing?