Linux - NewbieThis 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
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
I'm probably asking an old question, but when I print from a simple Linux text editor like xed to a simple parallel port dot matrix printer, I get all the random seeming output of a PDF. Wherever I search online about this, I only see links to the opposite problem--ways of turning text into PDF. How do I keep text from outputting as a PDF? I want my text RAW, or text. I thank you for your time.
WayCon
Maybe, the default print output format from GUI applications is PDF so it depends on how the printer is configured.
How did you setup your printer in cups? What is the make and model number of the printer?
All of the old legacy print drivers are now maintained by Open Printing now days since many distributions do not install them by default anymore nor by Apple (They own cups). http://www.openprinting.org
Hello frankbell,
I am trying to attach a poor photo of the print out. It's pretty clearly page description output, or so I believe. The quality is poor because the ribbon is old and dried up. This is what I got when I went to CUPS as you suggested and I hit the print test button.
Thank you,
WayCon
Hello, jefro,
The printer is one of several that I have used on and off for some years with Windows 10, Windows 7, and with other, older machines, so it is working.
Hello, michaelk,
I installed the printer through the print installer on my Mint machine. It did see it as an Epson printer, so I used the driver suggested and also I tried the most absolutely generic set up the print installer offered. I am certainly willing to give you any specific information you want. What would be useful?
This type of Epson printer I was using, back when I was really running everything on Dos, so I don't think it really needs or, ordinarily, uses drivers. Of course I could be wrong, but I imagine there must be a solution, somewhere.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818
Rep:
Quote:
Originally Posted by WayCon
Hello,
I'm probably asking an old question, but when I print from a simple Linux text editor like xed to a simple parallel port dot matrix printer, I get all the random seeming output of a PDF. Wherever I search online about this, I only see links to the opposite problem--ways of turning text into PDF. How do I keep text from outputting as a PDF? I want my text RAW, or text. I thank you for your time.
WayCon
I'm not sure what the "random seeming output of a PDF" looks like. I can only assume that it looks like plain old binary characters with some PostScript sprinkled in for good measure.
Aside from the "/dev/lpt0" suggestion mentioned above -- which I haven't tried since the pre-CUPS era -- have you tried something like:
Code:
$ lpr -l plain.txt
This works but... I do have a CUPS-defined printer set up. The file will need to have CR-LF line terminators instead of the standard LF line terminators that UNIX files employ if you're going to bypass the filters that CUPS will use. Emacs provides a simple way to do this: Esc<Esc% ^Q^J[Ret]^Q^M^Q^J[Ret]! (OK... maybe simple to some).
If you're into programming, a simple filter could be written to change all LFs to CR/LFs which would let you issue:
Code:
$ crlffilter < plain.txt | lpr -l -
Ah... after scrolling through the posts again, I see that you've gotten a CUPS printer set up. If it's slow, try bypassing CUPS filters using the "lpr -l" command I showed above.
I'm betting that CUPS doesn't put a lot of effort into optimizing their dot matrix printer support. Q: Where do you find tractor-feed paper and ribbons for those old beasts nowadays? (I was just joking with someone today about "disa-perf" paper. :^D )
In order for cups to print to a text Epson type printer the PDF file needs to be converted via a raster filter and I believe the required filter is rastertoespon. Mint does have the raster filter so something must be amiss with cups somewhere or it is possible the raster filter does not work anymore. I have a Zebra label printer and it no longer "works" with later cups versions due to the raster filter. I have yet to figure it all out but Michael Sweet (The original cups developer) had to create a special spooler program because I think that Apple screwed it up. From what I can tell they had a falling out and he no longer works for Apple.
A raw printer bypasses the filters so that is not going to work with PDF formated output. Printing from the command line would send plain text directly to the printer instead of PDF and was requested as a test.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.