Re: how to save the xobjview image into a file IN COLOR ? [message #27686] |
Sat, 03 November 2001 10:20  |
newt
Messages: 4 Registered: August 2001
|
Junior Member |
|
|
Pavel Romashkin wrote:
> David Fanning" <david@dfanning.com> wrote in message
> news:MPG.164cdbff68d2a47198974a@news.frii.com...
>
>> Sure enough, out of my printer
>> comes a gray-scale plot. OK, try the file
>> thing. I used an Apple Postscript color driver.
>> Sure enough, that showed up in color when viewed
>> in Ghostview. Humm. Try printing again to my
>> Inkjet. What!? Now it's in color!
>>
>> Very, very strange.
>
> I can not help, but I can sympathize.
> Just a couple of days ago I sent a postscript file, looking perfectly in
> GhostView and Illustrator, to a PS printer. The printer (in fact, a high
> speed copier) was on the third floor, I am on the second. And the damn
> printer is *really* fast. By the time I got there about 200 pages of were
> out, and in those 10 s it took me to realize something was fishy, at least
> another 50 came out. I frantically reset the printer, which was printing...
> all my 10 Mb PS file in ASCII.
> Oh well. Now I have enough scratch paper for myself for a year and for David
> to finish the objects book.
> BTW, the same file printed fine the next time. Computers, you know.
>
> Cheers,
> Pavel
If you still have the postcript file, take a look at it in a text viewer, many
times I've seen Windows postcript drivers insert PCL comands into the first
few lines of a PS file, trying to 'set' the printer to PS mode. Our HP
printers toggle on / off PCL commands, so if you print one of these files
while the printer is in PS-mode, it kicks it into PCL-mode and prints the
pages and pages of the text of the postcript file. Ghostview ignores these
commands, and will display the file correctly. My guess is that the printer
was left in an unusual state from a previous print job and that's why it
prints fine later. I've always had problems with postcript and Windows, were
the files created on a WindowsXX system? My fix was (is) to open the ps file
in a text editor (vi) and dd those 3-4 lines, then things print fine. I've
also seen that color can come or go depending on the printer / printer driver
you use. It seems postcript is only a standard in theory, in practice it seems
highly device dependent!
|
|
|
Re: how to save the xobjview image into a file IN COLOR ? [message #27688 is a reply to message #27686] |
Fri, 02 November 2001 21:33   |
Pavel A. Romashkin
Messages: 531 Registered: November 2000
|
Senior Member |
|
|
David Fanning" <david@dfanning.com> wrote in message
news:MPG.164cdbff68d2a47198974a@news.frii.com...
> Sure enough, out of my printer
> comes a gray-scale plot. OK, try the file
> thing. I used an Apple Postscript color driver.
> Sure enough, that showed up in color when viewed
> in Ghostview. Humm. Try printing again to my
> Inkjet. What!? Now it's in color!
>
> Very, very strange.
I can not help, but I can sympathize.
Just a couple of days ago I sent a postscript file, looking perfectly in
GhostView and Illustrator, to a PS printer. The printer (in fact, a high
speed copier) was on the third floor, I am on the second. And the damn
printer is *really* fast. By the time I got there about 200 pages of were
out, and in those 10 s it took me to realize something was fishy, at least
another 50 came out. I frantically reset the printer, which was printing...
all my 10 Mb PS file in ASCII.
Oh well. Now I have enough scratch paper for myself for a year and for David
to finish the objects book.
BTW, the same file printed fine the next time. Computers, you know.
Cheers,
Pavel
|
|
|
Re: how to save the xobjview image into a file IN COLOR ? [message #27690 is a reply to message #27688] |
Fri, 02 November 2001 15:57   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning (david@dfanning.com) writes:
> So, surprised at Dick's suggestion, I just
> tried to print. Sure enough, out of my printer
> comes a gray-scale plot. OK, try the file
> thing. I used an Apple Postscript color driver.
> Sure enough, that showed up in color when viewed
> in Ghostview. Humm. Try printing again to my
> Inkjet. What!? Now it's in color!
You know what this reminds me of?
When I was trying to learn how to switch
the PRINTER between portrait and landscape
mode, I'd try a Landscape plot, it would come
out in Portrait. I'd try a portrait, it would
come out in Landscape. What the...!?
Finally, I realized that you can't change the
orientation of the printer at the same time
you try to change other printer settings. You
have to do it on a separate DEVICE, Landscape=1
line.
I wonder if color is the same thing?
Have to go play tennis. Just a thought.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: how to save the xobjview image into a file IN COLOR ? [message #27691 is a reply to message #27690] |
Fri, 02 November 2001 15:36   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Dick Jackson (dick@d-jackson.com) writes:
> I don't see this problem here. When I run (for example):
>
> IDL> XObjView, /Test
>
> ... and I choose the File menu item "Print..." and I am using a *color*
> PostScript printer driver, it creates a color PostScript file just as I
> want.
>
> (as well, the File menu item "Export Image..." saves a very nice color image
> file, if that's of any help)
There is something funny going on here that
I haven't been able to put my finger on yet.
I have a color Inkjet 990cse and I swear
about 60% of the time I can't get any color
out of object graphics programs at all.
So, surprised at Dick's suggestion, I just
tried to print. Sure enough, out of my printer
comes a gray-scale plot. OK, try the file
thing. I used an Apple Postscript color driver.
Sure enough, that showed up in color when viewed
in Ghostview. Humm. Try printing again to my
Inkjet. What!? Now it's in color!
Very, very strange. :-(
I know this has happened to me before because I
was trying to get a color print for a client the
other day and couldn't. I had to resort to a
screen snapshot.
Oh, well, something to chew on over the weekend.
The leaves will take care of themselves.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
|
|
Re: how to save the xobjview image into a file IN COLOR ? [message #27846 is a reply to message #27686] |
Tue, 06 November 2001 05:50  |
shl
Messages: 6 Registered: November 2001
|
Junior Member |
|
|
hi, all,
thank you all for answering my question.
i could save the image in color in the format of "jpeg" or "tiff"
but the quality of the image is not good enough for me.
i'd like to publish the image in a journal
and it has to be postscript quility.
now, i tried to save the image into postscipt file
by clicking "print" button and selecting "to file" or something.
when the printer is set to a black-and-white printer,
xobjview saves the image in the ps file ok. and of course in blackandwhite.
gv and xv can read it.
but if the printer is set to a color printer,
the ps file is unreadable by gv or xv. it is not just the window problem
adding a few lines for the printer setting at the top of the ps file.
the whole ps file is just unreadable.
do i have to set up the color printer properly ?
i tried to run the xobjview in one of my linux box.
but even when i set my default printer to be a color printer,
xobjview saves in blackandwhite.
and there is no button to select it to be color.
thanks in advance, seunghun
|
|
|