LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-23-2010, 05:45 AM   #1
calsoftsateesh
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Rep: Reputation: 0
printing using linux OS


Hi,

I am trying to print some text written in gedit editor using cups. gedit editor convering the text data to postscript data and sending to cups. Is there any editor in linux which does not change the data format while sending it to printer.I need plain text need to be coming to cups with out any alter.

Thanks,
Sateesh.
 
Old 03-23-2010, 07:25 AM   #2
phi
LQ Newbie
 
Registered: Jan 2005
Posts: 22

Rep: Reputation: 3
what about
Code:
lpr -P<printerName> <filename>
 
Old 03-23-2010, 01:38 PM   #3
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
AFAIK gedit doesn't know anything about postscript, it's just a simple GUI text editor.
Why do you say "gedit editor convering the text data to postscript data and sending to cups"?

In gedit, you just do File-> Print. It prints.

If not, then perhaps you have not set up cups or your printer properly.

We can help you do that, but only if you tell us which distribution of linux you are running, and which desktop you are using (KDE, Gnome Xfce etc.)

Welcome to LQ!
 
1 members found this post helpful.
Old 03-23-2010, 01:40 PM   #4
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 547

Rep: Reputation: 115Reputation: 115
It sounds like you are using the "a2ps" command. You should use "lpr" if you want it printed "plain".
 
Old 03-24-2010, 12:00 AM   #5
calsoftsateesh
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Hi all,

Thank you for your prompt reply, I am printing some text using gedit by doing file->print. The cups filters being run are pstops, pstoraster. since the incoming data is in the form of postscript, these filters are being used instead of texttops.
My requirement is, I need to extract some text from the print data in cups filters. If the incoming data is in the form of text, I can easily search and extract the data but If I use the gedit editor data is in the form of postscript.
If I use the lp command to print, data is coming to filters with out any change(that is in the plain text form). But I my case have to use some text editor to print instead of lp command.
And I am using the fedora 11 with GNOME desktop.

Thanks,
Sateesh.
 
Old 03-24-2010, 08:04 AM   #6
phi
LQ Newbie
 
Registered: Jan 2005
Posts: 22

Rep: Reputation: 3
raw?

If you open your files using "gv" or "evince" they look as they shuld?

Then you could try

Code:
lpr -Praw <fileName>
.
 
Old 03-25-2010, 12:31 AM   #7
tommyttt
Member
 
Registered: Oct 2009
Location: Federal Way, WA
Distribution: openSUSE 11.4 x86_64, openSuSE 12.1, Fedora 15
Posts: 207

Rep: Reputation: 34
As Tregegar said, gedit does NOT output postscript so it's happening somewhere else. Why do you need plain text to the printer? Does it not recognize it?

In gedit, when you view the print setup window, is there a setting telling cups to use a certain filter? And as phi suggested, save the file and send it directly to the printer (lpr is the print queque), so "lpr -P <XXX> <filename> just sends it there without filtering. The -P is the printer name as assigned by your system.
 
  


Reply

Tags
architecture, cups, linux, printing, using


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
banner printing - printing across multiple pages - in Linux, any suggestions? pbhj Linux - Software 3 11-07-2008 09:22 AM
Printing with CUPS to hplaserjets only printing 1 line zmag2linux Linux - Newbie 1 02-01-2008 10:48 AM
Whats the difference between CUPS printing and Samba shared printing? depam Linux - Software 1 03-17-2006 01:56 PM
Cups Printing problem, Linux to Linux Printing problem folken718 Slackware 2 11-08-2004 10:10 AM
Scribus Printing How to put 4 flyers on a page when printing jazzboy Linux - Software 0 05-02-2004 06:13 AM


All times are GMT -5. The time now is 03:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration