LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-16-2018, 06:34 PM   #1
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 145

Rep: Reputation: 17
cups-pdf landscape


Installed cups-pdf on a Mint OS.

Users are running report programs that auto print to the printer defined in the environment variable PRINTER. For PDF files this is set to a printer named and defined in CUPS as PDFPRINTER. Printing is not performed using the lp command.

Cups-pdf works great but I would like default printing to be in landscape mode.
I suspect this can be done by making changes to /etc/cups/ppf/PDFPRINTER.ppd

In this file there is an entry
LandscapeOrientation: Plus90

Finding the possible options for this entry is not easy to find.
Does anyone know where the options might be found and/or
whether this is the correct line to change in order to get landscape output and if not what line should be changed.
 
Old 11-16-2018, 10:35 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,531

Rep: Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137
Specific options can be configured by creating a printer instance.

https://www.cups.org/doc/options.html
 
Old 11-18-2018, 03:42 PM   #3
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 145

Original Poster
Rep: Reputation: 17
lp command line

All of these options require the use of the lp command.
The software in use send to cups-pdf from the application to which there is no access.
It is not an option to use the lp command.
I need to set the default behavior of the printer (in this case cup-pdf) to print landscape.
This should be possible using one of the cup configuration files in /etc/cups
 
Old 11-18-2018, 03:57 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,531

Rep: Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137
An instance is a copy of the printer with specific options. You change the environment printer variable to the instance. No need to use the lp command.
 
Old 11-19-2018, 03:53 PM   #5
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 145

Original Poster
Rep: Reputation: 17
Env variable

Yes thats how it works. the environment variable is set to the name of one of the cups printers. In this case cups-pdf. lp is not used. If it were we could set the option to belanscape but using lp is not an option because of the ay the system is set up.

The problem is to tell cups to default to a landscape presentation for that printer. Cn I do that in the ppd config file or somewhere else?
 
Old 11-19-2018, 04:53 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,531

Rep: Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137
I have not found another method yet.

To create an instance with landscape as default and set the default printer to that instance.

Code:
lpoptions -p your_printer/landscape -o orientation-requested=5

lpoptions -d your_printer/landscape
 
  


Reply

Tags
cups, landscape, ppd


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
Browser PDF plugin for CentOS v6.6 - Landscape printing issue jjscott Linux - Software 8 06-18-2015 10:15 AM
Printing PDF files in landscape sampappachan_nyc Linux - Server 1 04-21-2010 07:13 PM
[SOLVED] How to create landscape oriented pdf with ghostscript? kofucii Linux - Newbie 1 12-13-2009 04:59 PM
Recommendations for landscape generation? (Making nice landscape pictures) SBing Linux - Software 3 07-11-2004 08:09 AM
printing landscape pdf Caysho Linux - Newbie 2 01-22-2004 05:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration