Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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


The following commands works for me:
lp -dep1
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.

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

Rep: Reputation: 30

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.

Old 09-10-2004, 03:13 AM   #3
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)

Old 09-12-2004, 02:15 PM   #4
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 ?


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

All times are GMT -5. The time now is 04:44 PM.

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