Linux - GeneralThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
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.
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.