I am now so confused that I have to ask you. When you try printing the .hal from FF have you checked what format arrives at the backend (pdf or .ps)? Or have you already found that printing the .hal from FF to a file, that this file is 'damaged'.
first, the only time I've used FF in this manner, was by your request. I don't normally do it, and I think FF got in the middle of this only because you wanted a std page like the pclos home page as a test file. Or something like that.
However, it appears that IF I want to print that text file, the only way to do it successfully is to load it into FF12, which then displays it as normal text, which it is.
Now, IF I used FF, and print to file, with the print to file set to 'landscape' and 'shrink to fit', and to a .ps file, then the file will be good. Load that .ps into okular, displays fine. Print from okular, I select the epson, change its options also to 'shrink to fit' but in 'portrait' mode since its already rotated. Then I get the only good printout I've had. I suspect I could, now that I know how to work around this, do essentially the same thing from kwrite, kate, gedit or any of the others, as long as every step along the way is set to "shrink to fit", and one and only 1 of the two stages is set for landscape, probably the print to file only, leaving all subsequent steps in the portrait mode since we only want to rotate 90 degrees once. FWIW, shrink to fit, doesn't seem to actually shrink it much if any, but it does fix the problem.
Just for grins:
#> lp -d Epson_Stylus_NX515 -o request-orientation=4 -o fitplot /net/lathe/home/gene/linuxcnc/configs/my-lathe/my-lathe.hal
Gets a line wrapped, portrait mode printout. 'fitplot' was as close as I could get to a shrink to fit to lp.
If it was life & death, I could tell lp to use a smaller font, but the Brother Just Works. I have to run to the basement to retrieve the printout, something these ancient (77yo) legs aren't always happy about. When I bought that printer, the plan was to use it for program listings on the coco, originally by sending the file out the bitbanger port, thru a serial2USB adaptor, up a USB cable to this box, where a bash script listens to the usb port, saving what comes in, and closing out the file when no new data arrives for more than 2 seconds. At that point, my bash script hands the file off to lp, which renders it, and ships it back down the usb cable to the same 7 port hub the serial2usb is plugged into, but sending it to the Brother.
That gives me a printer on the coco that is about 40x faster than any printer it ever had before. But now we have a .jar file that monitors that same bitbanger port, but at 115k baud rather than 9600, allows up to 4 virtual floppy drives of any size, handles the printer duties, translates midi files from the coco & plays them into the speakers here. Its called drivewire.jar.
So, unless you want to continue this, I have a workaround, and you can file any notes you've been making away in case someone else arrives at this same impass. Murphy is a permanent resident here, guaranteeing I will find the oddest problem that no one else can duplicate. That seems to be a partial case here.
I thank you very much for the time you have devoted to this, my patience would have worn thin before now. I have been too long involved with the day to day maintenance of a tv station, where whatever is broke, MUST be fixed by the time we roll the opening video for the 5 oclock news. Under pressure like that I have found some mistakes in factory built gear that were so dumb, I steamed all night and called the maker the next day to talk to the engineer that designed it, usually just long enough to advise him of which piece of their gear I was calling about, what I found wrong with it, and by the way, the best part of you must have run down your mothers leg. TTL nand gates used as an inverter, with one input floating? I chased my tail on that one for 7 or 8 years, it was that intermittent. Chyron still owes me. Retired for about 10 years now, I am slowly mellowing out, emphasis on slowly. ;-)
Thanks again, and Cheers, Gene