Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

a2ps and Landscape printing

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
BigDaveyL
Tux's lil' helper
Tux's lil' helper
Posts: 99
Joined: Thu Jun 27, 2002 11:42 pm
Location: Rochester, NY
Contact:
Contact BigDaveyL
Website

a2ps and Landscape printing

  • Quote

Post by BigDaveyL » Sat Sep 14, 2002 11:29 pm

I have set up my Hewlett Packard DeskJet 870Cse using the HPIJS driver. Seems to print fine in portrait mode.

I want to print 2 pages per page using a2ps in landscape mode. a2ps has been configured to use "letter" sized paper.

When i do:

Code: Select all

a2ps --landscape some-program.c
The result isn't in landscape, but in portrait mode, with part of the second page cut off.

(As a side node the same thing happens when using a HP LaserJet 2200dtn with the same driver, using the raw driver seems like a temporary fix)

What am I over looking?
Top
Naan Yaar
Bodhisattva
Bodhisattva
Posts: 1549
Joined: Thu Jun 27, 2002 7:06 pm

  • Quote

Post by Naan Yaar » Sun Sep 15, 2002 4:29 am

a2ps seems to work fine in landscape mode on my box. Did you try dumping the output from a2ps with a "-o" and looking at it through ghostscript? If this works OK, it is likely to be a driver issue.
Top
BigDaveyL
Tux's lil' helper
Tux's lil' helper
Posts: 99
Joined: Thu Jun 27, 2002 11:42 pm
Location: Rochester, NY
Contact:
Contact BigDaveyL
Website

  • Quote

Post by BigDaveyL » Sun Sep 15, 2002 2:46 pm

Looks ok to me.

Other drivers do not seem to work (ie pcl, gimp-print).
Top
mgkahn
n00b
n00b
Posts: 2
Joined: Mon Sep 16, 2002 2:30 am

Problem with landscape printing caused by pstops

  • Quote

Post by mgkahn » Mon Sep 16, 2002 2:45 am

Like others, I could not get 2-column landscape mode to work with CUPS although it worked just fine with PDQ. After a zillion hours working thru the bowels of cups, I discovered that the problem is with the pstops filter (in /usr/lib/cups/filter directory). After I replaced the current version with an older version from a Mandrake 8.1 distribution, landscape rotation with and without 2-column worked fine!!!!

The source for pstops.c is dated 2002/05/28 19:04:50. This is the same as the current distribution from www.cups.org. There is one patch file on www.cups.org but it doesn't affect pstops.

The only posting on google regarding pstops is from freebsd which announces a new patch in the cvs tree for pstops.c that correts a problem with "rotating certain jobs (e.g. a2ps) away from specified orientation." This posting in fa.freebsd.cvs-all (ain't google amazing?) is dated 2002/07/31 @ 01:43:04 PDT -- well after the May date listed in the pstops.c source code in the current distibution. I suspect this is the fix for pstops that caused my problem (and others on this list) but it has not yet made its way into the official source tree.

I am not smart enough to know how to pull off the corrected version of pstops.c from the cups-base cvs tree. For now, I'm using the older Mandrake binary and all is working well.

Hope this helps others.

Michael Kahn
Top
corporate_gadfly
n00b
n00b
Posts: 29
Joined: Sat Sep 21, 2002 1:02 am

Re: a2ps and Landscape printing

  • Quote

Post by corporate_gadfly » Fri Feb 21, 2003 4:11 pm

BigDaveyL wrote:I have set up my Hewlett Packard DeskJet 870Cse using the HPIJS driver. Seems to print fine in portrait mode.

I want to print 2 pages per page using a2ps in landscape mode. a2ps has been configured to use "letter" sized paper.

When i do:

Code: Select all

a2ps --landscape some-program.c
The result isn't in landscape, but in portrait mode, with part of the second page cut off.

(As a side node the same thing happens when using a HP LaserJet 2200dtn with the same driver, using the raw driver seems like a temporary fix)

What am I over looking?
I think you've covered all the bases. You say you have configured a2ps to use "letter" sized paper. I am assuming this means that file /etc/a2ps/a2ps-site.cfg has a line like:

Code: Select all

Options: --medium=Letter
Furthermore, I recently started using a2ps and I used the following to get the 2 pages per page using landscape

Code: Select all

a2ps --landscape --columns=2 filename
or the short form

Code: Select all

a2ps -2r filename
I know this is an old topic, but this might help someone else.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic