[cups.general] Scale documents from one page size to an other

Alex Dyas adyas at linalis.com
Fri Nov 2 08:55:30 PDT 2012


Env - Ubuntu 12.04, Cups 1.5.3

I have successfully managed to use the lpr command to print an A4 PDF scaled up to A3 paper using this command :

$ lpr -o fitplot -o media=A3 someA4file.pdf

What I would like is this flexibility available from any GUI application.  Meaning that no matter what size the page has been defined as in the application, that the user may print it scaled up, or down, to any other size paper.

I have looked at using the lpoptions command, and creating a new instance of the printer with these options hard coded:

$ lpoptions -p Hewlett-Packard-HP-Color-LaserJet-CP5520-Series-2-Socket/a42a3 -o fitplot -o media=A3

But this doesn't work, the pages always come out unscaled even when directed to A3 paper.  I have checked in /etc/cups/lpoptions and the options are there.

Can anyone suggest what I'm doing wrong, or an other approach?  This has to be application agnostic.

Thanks in advance,


Alex Dyas, Manager - Systems Administration 
Tel: +41 22 348 30 15 | Mob: +41 788 34 6540 
www.linalis.com | twitter.com/linalis | www.linkedin.com/company/linalis 

Expert en Services, Formation et Recrutement BI et Applications Web (CMS, CRM) 
Partenaires certifies de Pentaho (BI), Jedox (Palo), Acquia (Drupal), SugarCRM et Infobright 

More information about the cups mailing list