Re: PRINTER device on Linux [message #41508] |
Tue, 02 November 2004 13:02 |
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  |
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  |
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  |
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?
|
|
|