1820140 Members
3260 Online
109619 Solutions
New Discussion юеВ

PCL5.nloo

 
j773303
Super Advisor

PCL5.nloo

I have a printer options problem. Since the file has more than 80 characters for one line ,when print it, it'd be truncated from 81 character to the end of line. Why it doesn't print on the second line?

I've try the below solutions, it is done.
fold -w 80 filename | lp -d printername
adjust -m80 file_name | lp -dwhatever

But, is it possible only use lp command, then more than 80 chars would auto print on the second line? or is it possible modify printer script directly? Thanks,
Hero
2 REPLIES 2
j773303
Super Advisor

Re: PCL5.nloo

Does anyone has the experience about above printer problem? Thanks.
Hero
Bill Hassell
Honored Contributor

Re: PCL5.nloo

This is not a printer problem, it is a formatting issue. If you modify the printer script then you'll break print jobs where a longer line is desired and needed. For instance, someone else may print a file that has graphics or special fonts to downloaad and folding/adjusting every line will break the printout completely into junk. For instance, you cn print your long line file with these commands:

lp -dprintername -o12 filename
lp -dprintername -oc filename
lp -dprintername -olandscape filename
lp -dprintername -olandscape -oc filename

Today's printers are not bound by arbitrary line lengths...almost any line length can be used. In the last example above, you can print lines as long as 200 characters.

The better way to handle autoformatting using either adjust -m80 or fold -w 80 is to add a new option to the existing printer script.


Bill Hassell, sysadmin