LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-09-2004, 05:46 AM   #1
TroelsSmit
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Rep: Reputation: 30
I can only print ps/txt files ?


Hi,

The following commands works for me:
lp -dep1 SmartDust.ps
lp -dep1 SmartDust.txt

but the equivallent:
lp -dep1 SmartDust.pdf

does not work.
I use the CUPS printing system.

How do I make lp/linux ready to print different types of documents ?
Especially pdf and jpeg would be nice.

THANKS!
 
Old 09-09-2004, 10:27 AM   #2
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
Hi,

As I understand it, lp is for text and postscript files so you would have to convert your pdf's and jpg's to postscript and pipe the output to lp. I don't know how to do that from the command line, but Adobe have a version of their acrobat reader for linux, and there's also a program xpdf. You should be able to print pdf's from either of these.

For jpg's, there are a ton of graphics programs that will let you print them.

John
 
Old 09-10-2004, 02:13 AM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
The command "lpr -P dep1 filename.pdf" should work. (I assume dep1 is the name of the printer)

--Ian
 
Old 09-12-2004, 01:15 PM   #4
TroelsSmit
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Original Poster
Rep: Reputation: 30
Isn't lp and lpr the same thing but for the fact that lpr has offline functioning ?
 
  


Reply



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
A cool script to search within a hell of TXT files guarriman Linux - General 7 12-08-2004 07:21 AM
HOWTO print to a .txt file my smb.conf? Lleb_KCir Linux - General 2 11-19-2004 06:35 PM
Bash, how do I test for *.txt files in a directory with IF? severian23 Programming 7 11-04-2004 09:47 AM
Taking .txt files from Linux to Windows NT on Floppy Disk???? rnk103 Linux - General 1 09-18-2003 06:43 AM
Convert Powerpoint files to txt,html..... devinWhalen Linux - Software 0 07-29-2003 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:01 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