LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 05:34 PM   #1
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Rep: Reputation: 18
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, 09:35 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,675

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

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

Original Poster
Rep: Reputation: 18
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, 02:57 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,675

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
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, 02:53 PM   #5
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 18
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, 03:53 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,675

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
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 09:15 AM
Printing PDF files in landscape sampappachan_nyc Linux - Server 1 04-21-2010 06:13 PM
[SOLVED] How to create landscape oriented pdf with ghostscript? kofucii Linux - Newbie 1 12-13-2009 03:59 PM
Recommendations for landscape generation? (Making nice landscape pictures) SBing Linux - Software 3 07-11-2004 07:09 AM
printing landscape pdf Caysho Linux - Newbie 2 01-22-2004 04:26 AM

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

All times are GMT -5. The time now is 08:02 PM.

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