paper format in lpoptions is disregarded

Bug #49410 reported by Fredrik Ljunggren
4
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: cupsys-client

When creating a printer with gnome-cups-manager, the "US Letter" paper size is choosen as default since this is what all users will want anyway.

However, some obscure parts of the world uses another paper format system (IEC/ISO 216) and some strange users might want to change paper format to reflect this.

When entering the gnome-cups-manager and edit the paper format properties of a printer, it creates the file $HOME/.cups/lpoptions

The content of the lpoptions file could look like this:

Dest LaserJet-5M-Postscript PageSize=A4 PageRegion=A4

Now, the difference between the "PageSize" option and the "PageRegion" option is probably obvious for all those hacking ppd files from memory, but I have no idea.

However, when entering both of these options, only the last one of them is reflected when issuing "lpoptions -l". But worse, none of them are regarded when printing from (for instance) the Document Viewer "evince". Printing from a non-gnome application works, OpenOffice has been verified to work after configuring that specific application for A4.

Version of cupsys-client is 1.2.0-0ubuntu5.

I don't know if this is a bug or a feature to help people using the "Letter" format. I don't even know why the paper size is defined in 3(+n?) places:

The ppd file
/etc/papersize
$HOME/.cups/lpoptions

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Thanks for your bug report.

Can you try if you still have this problem in Dapper 6.06 LTS after
applying the patch suggested in bug #34112.

Test packages with the patch applied (amd64 and i386, and source) can be
found here (thanks to Martin Pitt):

  deb http://people.ubuntu.com/~pitti/packages/libgnomeprint/ ./
  deb-src http://people.ubuntu.com/~pitti/packages/libgnomeprint/ ./

just add this to /etc/apt/sources.list, sudo apt-get update, and sudo apt-get upgrade.

Let us know if it works!

Changed in cupsys:
status: Unconfirmed → Needs Info
Revision history for this message
Fredrik Ljunggren (fredrik-kirei) wrote :

Problem is solved with the patched version in latest libgnomeprint2.2-0 (2.12.1-3ubuntu2). Thanx Pascal.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cupsys (Ubuntu) because there has been no activity for 60 days.]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.