Comment 3 for bug 196687

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Probably the custom page size was selected but bogus values for the width and the height of the paper supplied, or no values at all.

This can for example happen if:

* A printing dialog does not support custom page sizes by showing input fields for the dimensions of the paper when the page size "Custom" is selected, but it allows to select "Custom", which does not make sense without dimensions. To see correctly implemented printing dialogs install xpp or flphoto from Universe.
* On the command line of "lp" or "lpr" the option "-o PageSize=Custom" was supplied and not "-o PageSize=Custom.10x20cm".
* An application sends option strings in localized format to CUPS, for example "PageSize=Custom.20,5x11,5cm" (Note that here "," instead of "." is used as decimal point).

There are two things which need fixing:

* foomatic-rip should fall back to the default paper size if the dimensions for a custom paper size are bogus.
* Applications (or the desktop's printing dialog) should send correct custom paper sizes or not allow to choose "Custom" as paper size.

This is not a Ghostscript bug, as the input is bogus.