Paul, --- Paul Parsons <paul.parsons at advanticagroup.com> wrote:
> When I try to print a text file, I can control the > orientation and paper size in the lp command using: ...cut ... > So that's working fine now... thank you thank you > thank you! That's good :-) > But when I send my .HP2 file, it comes out as text > on many pages. This file is being generated by an > old program. I don't want to do anything too radical > to the program. I've tried loading the file into a > program that displays HPGL-2 (Hewlett Packard > Graphics Language) files and it does display > correctly. I think that means it must be an HPGL-2 > file. I think it's an HP format for sending > instructions to a plotter. > > When I was using the netstandard printer driver and > sending the same file to the same printer, it was > printing out correctly. Somehow I need to be able to > do the same thing now I'm using the ppd driver I > loaded using printmgr. As it's raw data you are sending to the printer in the HPGL-2 file I don't think you will be able to use a print q that uses foomatics/ppd setup. Orginally you said you were using the following setup and that was printing the HPGL-2 file okay ... >> lpadmin -p myprinter -v /dev/null >> lpadmin -p myprinter -i /usr/lib/lp/model/netstandard >> lpadmin -p myprinter -o dest=my_printer:9100 \ >> -o protocol=tcp -o timeout=5 -o banner=never >> lpadmin -p myprinter -T PS -I postscript,simple >> accept myprinter >> enable myprinter This was probably okay because the s10 print system thought the data was text (simple) and so just sent it straight out to the printer (unfiltered). So I would think you really need a print q setup as above but that has a "Content types:" of say 'HPGL' (lpadmin -I HPGL) and then tell 'lp' also the print job content type is HPGL, eg 'lp -d myprinter -T HPGL myhpglfile'. But I don't think there is then any standard way to control the PageSize and Orientation with this setup. One way (that I can think of) would be to add your own custom filter to the s10 print system that could add the required 'escape page control' strings (PCL strings) prior to sending the hpgl data. I tried it here but our printer doesn't seem to accept PCL data so I can't confirm it would work. Has anyone else got any other ideas? PaulC
