LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Custom lp print options (https://www.linuxquestions.org/questions/linux-server-73/custom-lp-print-options-4175477918/)

PeaTearGriffen 09-20-2013 03:13 PM

Custom lp print options
 
Hello all,

I would like to create some custom print options that can be specified on the command line with one -o option that would set things like orientation, top margin, bottom margin, font pitch, etc. That way, when users need to print using one of these different configurations, they can just specify one -o option with the lp command, to print with the needed settings.

For example,

lp -d printer1 -o portsmall (for smaller portrait printing)
lp -d printer1 -o landlett (for landscape printing with specialized margins set)

Any help is appreciated.

Thank you

michaelk 09-20-2013 05:49 PM

You can create instances via the lpoptions command line utility.

http://www.cups.org/documentation.php/options.html

To print using that instance:

lpr -P printer/instance file.name


All times are GMT -5. The time now is 06:57 AM.