CUPS prints jagged, stair-stepped text in RHEL

Solution Verified - Updated -

Issue

  • Standard CUPS printer config 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
    three
    

    but when we print the file, it looks like this:

    one
        two
            three
    
  • 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 unix2dos and 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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.