The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
landscape printing ppass SUN Solaris 3 01-07-2005 12:46 AM
lpr landscape squeakywheel UNIX for Dummies Questions & Answers 1 09-02-2004 07:33 AM
landscape print in Liunx larry UNIX for Dummies Questions & Answers 2 10-11-2002 09:01 AM
How to print a text file in landscape yxiao UNIX for Dummies Questions & Answers 5 06-20-2002 03:21 PM
I print reports that are landscape skammer UNIX for Advanced & Expert Users 4 02-28-2002 08:15 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 08-28-2007
Registered User
 

Join Date: Aug 2007
Posts: 1
printing an xml file in landscape

Hey all,

This is probably a stupid question but I can't seem to find the answer I need anywhere.

I have an XML file that I need to be able to print in landscape because the text goes off the page when I try to print in portrait.

I can't find a way to do this using lp. I understand, from my limited research, that there is some way to tell the printer how to do this but I'm not sure how.

I'm using SCO_SV 3.2 i386 Unix and my printer is a LaserJet 3800 dn.

Any advice? Help is greatly appreciated!

Thanks!
Reply With Quote
Forum Sponsor
  #2  
Old 08-28-2007
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,275
The fmt command will split lines up to resonable sizes:

Code:
fmt -w 80 myfile.xml | lp
Change 80 to the width you need -- 80 is default on my system. Note -w is for the BSD family of UNIX-es.
Otherwise just use fmt.

Going to landscape mode requires some knowledge about your printer and it's setup. Sometimes you can embed an escape sequence at the start of a file to put the printer in landscape mode. Consult your printer manual.


lp -l <option> may be available for your system as well. Ask your sysadmin how to use it.

Last edited by jim mcnamara; 08-28-2007 at 09:25 AM.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0