Find the answer to your Linux question:
Results 1 to 6 of 6
RHEL 5.4 Trying to set up a printer for the 1st time using CUPS's GUI system-config-printer. Trying to set up a printer that will print in landscape mode, 132 characaters ...
  1. #1
    Linux Newbie
    Join Date
    Mar 2009
    Posts
    228

    [SOLVED] CUPS printing in landscape mode

    RHEL 5.4

    Trying to set up a printer for the 1st time using CUPS's GUI system-config-printer. Trying to set up a printer that will print in landscape mode, 132 characaters per line, and 66 lines per page. Got it to print in landscape mode but the line wraps at 108 characters.

    What settings do I need to get it not to wrap. Current settings are:

    cpi: 15
    landscape: true
    lpi: 8

    Thanks

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    There are a number of factors that will affect how many characters are printed on a page.

    1. Font size
    2. Margins on the page
    3. Font type - fixed width vs. proportional font

    On my CentOS 5.4 system, the default margins set in the printer manager is about 1/8 inch on each side in landscape mode. The 132 char per line metric is edge-to-edge w/ no margins, or 12 characters per inch. If you are using 14 char / inch fonts, then 10.75 print inches will give you 107.5 characters per line - pretty much what you are seeing. So, first check your font sizes and then your margin settings.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Oops - bad calculations. The 107.5 chars per line should be w/ 10 cpi fonts. My bad. With 15 cpi fonts, you should be getting 50% more chars / line. Anyway, check your margin settings. Also try a smaller font to see if that helps.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. #4
    Linux Newbie
    Join Date
    Mar 2009
    Posts
    228
    Thanks for the replies Rubberman. But it's not margin settings or font size. In the example I was using there's like 3 inches of unused line before the right margin is reached.

  5. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    You might want to see if adjusting the page-left/page-right settings as well. There are no settings for characters per line that I can find, it it might be using the page-right settings to determine where to wrap. I haven't tried this, so I can't say for sure.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #6
    Linux Newbie
    Join Date
    Mar 2009
    Posts
    228
    Finally figured out what it was. Had to do the following:

    1. Stop cups service
    # service cups stop

    2. Edit /etc/cups/mime.convs file and search for the below line
    text/plain application/postscript 33 texttopaps

    Change the above line to
    text/plain application/postscript 33 texttops

    save and exit.

    3. Start the cups server
    # service cups start

    Then some tweaking of the margins and font size and it works.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...