My thanks to paulcun for his kind help to obtain a solution to this problem. I'm not saying this solution is the only one or even that it's the best one. But it works for me.
I've tried 2 ways to create a printer queue for a network printer: 1. Using lpadmin commands and the standard network printer driver. There don't seem to be options in the lp command with this driver to control the page size and orientation, but it was capable of interpreting the file to be printed. I stated the commands I used to do this earlier in this thread. 2. Using printmgr and the printer driver for my printer which happens to be an HP Color Laserjet 8550N (note that the drop down box only offers 8550GN, but the 8550GN is the the same as the 8550N but with more things - so it should work fine.) There are options in the lp command with this driver to control the page size and orientation, but it didn't understand the format of the file I was sending to it. It was printing it as text. (A lot of text!) I tried printing a postscript file and it was fine - but my file isn't postscript. The file to be printed is generated by an old poorly documented program. It seems to contain some PCL and some HPGL or HPGL-2. The solution I'm using is to use the netstandard driver and to add some PCL to the front of the file to be printed which controls the page size and orientation. The PCL sequences I needed are specified in this document: http://h20000.www2.hp.com/bc/docs/support/SupportManual/bpl13205/bpl13205.pdf Here are the ones I'm going to use: 1. A3: "\033&l27A" 2. A4: "\033&l26A" 3. Landscape: "\033&l1O" 4. Portrait: "\033&l0O" (Note that in some fonts, the letter "l" can easily be confused with the digit "1" and the upper-case letter "O" can easily be confused with the digit "0". All 4 characters are used above.) So, to print PLOT.HP2 in A3 and landscape on myprinter, the shell commands are: printf "\033&l27A" > test.print printf "\033&l1O" >> test.print cat PLOT.HP2 >> test.print lp -d myprinter test.print Paul This message posted from opensolaris.org
