CUPS prints jagged, stair-stepped text in RHEL
Issue
- Standard CUPS printer configuration produces only one line of output on HP LaserJet printer.
-
We have a text file that looks like the following when displayed on the terminal:
$ cat test.txt one two threebut when we print the file, it prints in a stair-stepped fashion, like this:
one two three -
We are printing a text file with NULL ("
^@", with hexadecimal value0x00) characters in the file. Only the first line of the document is printed, or the document is printed in a stair-stepped fashion. -
We have configured the remote printer (HP) on the Linux server with the following command, but when we will print the files just it is printing one line:
# lpadmin -p LP323JF -E -v lpd://10.1.2.3/LP323JF -
Is there a way to pass the content to
unix2dosand then send it to printer with out changing the main execution command (cat <PCL file name> | lp -d<pcl printer name>).
Environment
- Red Hat Enterprise Linux (RHEL)
- Common Unix Printing System (CUPS)
- HP LaserJet printer
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.