LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-20-2013, 03:13 PM   #1
PeaTearGriffen
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Rep: Reputation: Disabled
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
 
Old 09-20-2013, 05:49 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,675

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a Custom ISO with Options metallica1973 Linux - General 4 07-04-2012 11:46 AM
Samba Print command options simplax Linux - Software 5 12-01-2011 09:44 AM
Ubuntu Casper USBDISK Custom Boot Options metallica1973 Ubuntu 12 10-19-2010 02:57 PM
Print dialog options in Fedora Core 8 Vanyel Linux - Desktop 0 03-06-2008 04:43 PM
Custom DHCP Options Llawnroc Linux - Networking 1 09-08-2003 12:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration