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

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Thu Jul 30 04:46:32 PDT 2015


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?

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

As you can imagine, while installing something like 50+ printers on the
command line is rather simple and can be automatized, having to
to manually to adjust the default paper size from "Letter" to "A4"
is quite tedious unless one resorts to use something like Perl
replace-regexp on the PPDs located in /etc/cups/ppd/.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



More information about the cups mailing list