comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: PRINTER device on Linux
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: PRINTER device on Linux [message #41508] Tue, 02 November 2004 13:02
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Marshall Perrin writes:

> This is something of a dodge around the problem, but
> writing a postscript file and then spawning "lp filename"
> should do the trick. I don't think I've ever encountered
> a modern Linux box whose printer driver didn't speak Postscript.

No question this is the preferred solution, but the
problem I had was with a PrintWindow program that does
a quick screen dump and sends it to a printer. I solved
the problem by just doing a Color_Quan on the 24-bit
image and loaded the color tables before I Set_Plot
to PRINTER. Works OK, but that PRINTER device is more
trouble than it is worth, once again. :-(

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http:/www.dfanning.com/
Phone: 970-221-0438, IDL Book Orders: 1-888-461-0155
Re: PRINTER device on Linux [message #41511 is a reply to message #41508] Tue, 02 November 2004 12:54 Go to previous message
mperrin+news is currently offline  mperrin+news
Messages: 81
Registered: May 2001
Member
David Fanning <david@dfanning.com> wrote:
> A page comes out of the printer, but there is nothing
> on it. Any ideas on what this might mean? Or, on
> how I might fix it?

This is something of a dodge around the problem, but
writing a postscript file and then spawning "lp filename"
should do the trick. I don't think I've ever encountered
a modern Linux box whose printer driver didn't speak Postscript.

- Marshall
Re: PRINTER device on Linux [message #41516 is a reply to message #41511] Tue, 02 November 2004 08:22 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ken Mankoff writes:

> P.S. Who are you, and what have you done with David Fanning? I
> thought you didn't do low-level Linux :) Next, are you going to be
> writing in with emacs IDLWAVE questions?

Oh, if I started down that path, there would be no end
of it. :-(

Cheers,

David

P.S. It was a 24-bit image I was trying to print.
A screen dump from a 24-bit display. TV, image, true=1.
I'll try an 8-bit image, but that's like stepping
back to the 1970's, isn't it?

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http:/www.dfanning.com/
Phone: 970-221-0438, IDL Book Orders: 1-888-461-0155
Re: PRINTER device on Linux [message #41517 is a reply to message #41516] Tue, 02 November 2004 08:12 Go to previous message
KM is currently offline  KM
Messages: 29
Registered: October 2004
Junior Member
On Tue, 2 Nov 2004, David Fanning wrote:
> Has anyone gotten the PRINTER device to work on a Linux machine?
Never tried.

> I got my printer apparently set us and my computer able to send
> info to the printer. But when I send output (an image), I get the
> error message:
>
> %Can't set RGB color on an indexed destination.
What type of image? Some 3-channel RGB I am guessing? That might be
the problem. Have you tried a bitmap, or an {E}PS?

> A page comes out of the printer, but there is nothing on it. Any
> ideas on what this might mean? Or, on how I might fix it?
It sounds like the destination doesn't take RGB data, only indexed
files. But I haven't dealt with this exact message myself.

-k.

P.S. Who are you, and what have you done with David Fanning? I
thought you didn't do low-level Linux :) Next, are you going to be
writing in with emacs IDLWAVE questions?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: external file read/plot with executable IDL
Next Topic: Re: external file read/plot with executable IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 05:02:26 PDT 2025

Total time taken to generate the page: 0.64222 seconds