[cups-devel] cupsd.conf option DefaultPaperSize has no effect

Michael Sweet msweet at apple.com
Thu Jul 30 05:21:13 PDT 2015


Adrian,

> On Jul 30, 2015, at 7:46 AM, John Paul Adrian Glaubitz <glaubitz at physik.fu-berlin.de> wrote:
> 
> Hi Michael!
> 
> On 07/30/2015 01:31 PM, Michael Sweet wrote:
>> The default paper size is only applied when using the "-m" option of lpadmin.  If you use "-i" or "-P" then the PPD file is used as-is.
> 
> So, there is basically no way to install a printer from the command line
> and forcing the default paper size to "A4" when a PPD provided by the
> printer vendor is used?

Two ways:

1. Copy the vendor PPD to /usr/share/cups/model, then setup queue with "-m".
2. Use "-i" or "-P" along with the "-o PageSize=A4" option (you'll need to run two separate commands prior to 2.0.3 due to a bug)

> Is this by design or is it technically not possible to force the paper
> size in CUPS source code when supplying a PPD?

The default paper size is part of the PPD.  You can override the default in the PPD (all of the DefaultPageSize/DefaultPageRegion/DefaultImageableArea/DefaultPaperDimension lines) or ask CUPS to do it.

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair




More information about the cups mailing list