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

Home » Public Forums » archive » Problems importing IDL postscript from TV output into Adobe Illustrator
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
Problems importing IDL postscript from TV output into Adobe Illustrator [message #30827] Tue, 21 May 2002 11:57 Go to next message
ejensen1 is currently offline  ejensen1
Messages: 4
Registered: May 2002
Junior Member
I'm using IDL 5.3 under Linux to create some postscript files that I'd
like to include in an Adobe Illustrator document. This works fine with
line drawings (PLOT, CONTOUR, etc.) but if I create a postscript file
using TV (or David Fanning's TVIMAGE), I cannot import it into
Illustrator. When I try to open the postscript file in Illustrator
or place it into an Illustrator document, one of two things happens:

1. If I created the postscript file without setting it to
be encapsulated (i.e. 'device, Encapsulated=0'), I get
the error "The MPS parser is unable to parse the file".

2. If I create an encapsulated postscript file (using
'device, Encapsulated=1') then the open just fails
silently. It opens an empty document (or if I'm placing
an image in an open document, nothing happens - I don't even
get an empty rectangle indicating a blank object placed there).

Note that Illustrator doesn't need an embedded preview - it will
quite happily display non-encapsulated postscript files with no
previews that I've created in IRAF or PGPLOT (or even IDL with PLOT,
but not with TV).

Choice of color table doesn't seem to matter, nor does using
/COLOR or not for the postscript device.

Under Linux, I can open the offending postscript files with
ghostview, and they print with no problem.

Does anyone have any idea what's going on, or other things to try?
I've looked around David Fanning's book and website and didn't find any
clues there, no is there anything obvious in Adobe's Illustrator
support docs on their site.

My system: IDL 5.3 under Redhat Linux 6.2; Illustrator 10.0.1 under
Mac OS X 10.1.3


Here's a minimal program that will generate a postscript file
that causes this problem:

pro test_tv, myfile, encap

loadct, 0
set_plot, 'ps'
device, file=myfile, Encapsulated=encap
; Make a 100x100 image with random pixels from
; 0 to 2^8 (to get random 8-bit grayscale pixels)
x = randomu(seed, 100, 100)*(2.^8 - 1)
tv, x
device, /close

end

Thanks in advance for your help.

Eric Jensen
Dept. of Physics and Astronomy
Swarthmore College
Re: Problems importing IDL postscript from TV output into Adobe Illustrator [message #30893 is a reply to message #30827] Thu, 23 May 2002 00:35 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Eric Jensen wrote:
>
> I'm using IDL 5.3 under Linux to create some postscript files that I'd
> like to include in an Adobe Illustrator document. This works fine with
> line drawings (PLOT, CONTOUR, etc.) but if I create a postscript file
> using TV (or David Fanning's TVIMAGE), I cannot import it into
> Illustrator. When I try to open the postscript file in Illustrator
> or place it into an Illustrator document, one of two things happens:

Dear all,

I am often using scribus

http://web2.altmuehlnet.de/fschmid/

Scribus is a Layout program for Linux�, similar to Adobe� PageMaker,
QuarkXPress, Adobe� InDesign,
except that it is published under the GNU GPL.

I have successfully read in your image and I am able to save it in eps.
If you are interested I could mail you the result.

Another problem we have had at the linux is solved by this too.
The eps output is in cmyk and if you like you can do color separations.


regards

Reimar





>
> 1. If I created the postscript file without setting it to
> be encapsulated (i.e. 'device, Encapsulated=0'), I get
> the error "The MPS parser is unable to parse the file".
>
> 2. If I create an encapsulated postscript file (using
> 'device, Encapsulated=1') then the open just fails
> silently. It opens an empty document (or if I'm placing
> an image in an open document, nothing happens - I don't even
> get an empty rectangle indicating a blank object placed there).
>
> Note that Illustrator doesn't need an embedded preview - it will
> quite happily display non-encapsulated postscript files with no
> previews that I've created in IRAF or PGPLOT (or even IDL with PLOT,
> but not with TV).
>
> Choice of color table doesn't seem to matter, nor does using
> /COLOR or not for the postscript device.
>
> Under Linux, I can open the offending postscript files with
> ghostview, and they print with no problem.
>
> Does anyone have any idea what's going on, or other things to try?
> I've looked around David Fanning's book and website and didn't find any
> clues there, no is there anything obvious in Adobe's Illustrator
> support docs on their site.
>
> My system: IDL 5.3 under Redhat Linux 6.2; Illustrator 10.0.1 under
> Mac OS X 10.1.3
>
> Here's a minimal program that will generate a postscript file
> that causes this problem:
>
> pro test_tv, myfile, encap
>
> loadct, 0
> set_plot, 'ps'
> device, file=myfile, Encapsulated=encap
> ; Make a 100x100 image with random pixels from
> ; 0 to 2^8 (to get random 8-bit grayscale pixels)
> x = randomu(seed, 100, 100)*(2.^8 - 1)
> tv, x
> device, /close
>
> end
>
> Thanks in advance for your help.
>
> Eric Jensen
> Dept. of Physics and Astronomy
> Swarthmore College

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
============================================================ =======
Re: Problems importing IDL postscript from TV output into Adobe Illustrator [message #30906 is a reply to message #30827] Wed, 22 May 2002 11:42 Go to previous message
ejensen1 is currently offline  ejensen1
Messages: 4
Registered: May 2002
Junior Member
Rick Towler kindly sent me some postscript files created with IDL 5.5,
and I observe the same problem as with IDL 5.3, so I can verify that
it's not caused by the postscript bug that RSI fixed after IDL 5.3.

I also tried running Illustrator 9.0.2 in Classic mode under OS X,
and I have the same problem (with the small difference that both
encapsulated and non-encapsulated files fail silently, giving a
blank page, rather than the latter giving a parser error.
Re: Problems importing IDL postscript from TV output into Adobe Illustrator [message #30915 is a reply to message #30827] Wed, 22 May 2002 07:14 Go to previous message
Randall Skelton is currently offline  Randall Skelton
Messages: 169
Registered: October 2000
Senior Member
I just tried your code... I observe the same problem with Illustrator 10.0
under OS X. Even after using 'ps2ps' to remove dodgy postscript, I still
have problems... I don't have version 9 installed anymore but I don't
remember this being a problem before.

Cheers,
Randall

On Wed, 22 May 2002, Mike Kaiser wrote:

>
> Using IDL 5.3 running under UNIX on our Sun workstations, I import (into
> Illustrator on my PC) files created with TV all the time without any
> problems. I've been doing this regularly since IDL 3.x, so I doubt your
> problem has to do with the IDL version.
>
> Mike Kaiser kaiser@panacea.gsfc.nasa.gov
>
>
> "Eric Jensen" <ejensen1@swarthmore.edu> wrote in message
> news:245670e3.0205211057.466f3b5e@posting.google.com...
>> I'm using IDL 5.3 under Linux to create some postscript files that I'd
>> like to include in an Adobe Illustrator document. This works fine with
>> line drawings (PLOT, CONTOUR, etc.) but if I create a postscript file
>> using TV (or David Fanning's TVIMAGE), I cannot import it into
>> Illustrator. When I try to open the postscript file in Illustrator
>> or place it into an Illustrator document, one of two things happens:
>>
>> 1. If I created the postscript file without setting it to
>> be encapsulated (i.e. 'device, Encapsulated=0'), I get
>> the error "The MPS parser is unable to parse the file".
>>
>> 2. If I create an encapsulated postscript file (using
>> 'device, Encapsulated=1') then the open just fails
>> silently. It opens an empty document (or if I'm placing
>> an image in an open document, nothing happens - I don't even
>> get an empty rectangle indicating a blank object placed there).
>>
>> Note that Illustrator doesn't need an embedded preview - it will
>> quite happily display non-encapsulated postscript files with no
>> previews that I've created in IRAF or PGPLOT (or even IDL with PLOT,
>> but not with TV).
>>
>> Choice of color table doesn't seem to matter, nor does using
>> /COLOR or not for the postscript device.
>>
>> Under Linux, I can open the offending postscript files with
>> ghostview, and they print with no problem.
>>
>> Does anyone have any idea what's going on, or other things to try?
>> I've looked around David Fanning's book and website and didn't find any
>> clues there, no is there anything obvious in Adobe's Illustrator
>> support docs on their site.
>>
>> My system: IDL 5.3 under Redhat Linux 6.2; Illustrator 10.0.1 under
>> Mac OS X 10.1.3
>>
>>
>> Here's a minimal program that will generate a postscript file
>> that causes this problem:
>>
>> pro test_tv, myfile, encap
>>
>> loadct, 0
>> set_plot, 'ps'
>> device, file=myfile, Encapsulated=encap
>> ; Make a 100x100 image with random pixels from
>> ; 0 to 2^8 (to get random 8-bit grayscale pixels)
>> x = randomu(seed, 100, 100)*(2.^8 - 1)
>> tv, x
>> device, /close
>>
>> end
>>
>> Thanks in advance for your help.
>>
>> Eric Jensen
>> Dept. of Physics and Astronomy
>> Swarthmore College
>
>
>
Re: Problems importing IDL postscript from TV output into Adobe Illustrator [message #30916 is a reply to message #30827] Wed, 22 May 2002 05:18 Go to previous message
Michael L. Kaiser is currently offline  Michael L. Kaiser
Messages: 5
Registered: February 2001
Junior Member
Using IDL 5.3 running under UNIX on our Sun workstations, I import (into
Illustrator on my PC) files created with TV all the time without any
problems. I've been doing this regularly since IDL 3.x, so I doubt your
problem has to do with the IDL version.

Mike Kaiser kaiser@panacea.gsfc.nasa.gov


"Eric Jensen" <ejensen1@swarthmore.edu> wrote in message
news:245670e3.0205211057.466f3b5e@posting.google.com...
> I'm using IDL 5.3 under Linux to create some postscript files that I'd
> like to include in an Adobe Illustrator document. This works fine with
> line drawings (PLOT, CONTOUR, etc.) but if I create a postscript file
> using TV (or David Fanning's TVIMAGE), I cannot import it into
> Illustrator. When I try to open the postscript file in Illustrator
> or place it into an Illustrator document, one of two things happens:
>
> 1. If I created the postscript file without setting it to
> be encapsulated (i.e. 'device, Encapsulated=0'), I get
> the error "The MPS parser is unable to parse the file".
>
> 2. If I create an encapsulated postscript file (using
> 'device, Encapsulated=1') then the open just fails
> silently. It opens an empty document (or if I'm placing
> an image in an open document, nothing happens - I don't even
> get an empty rectangle indicating a blank object placed there).
>
> Note that Illustrator doesn't need an embedded preview - it will
> quite happily display non-encapsulated postscript files with no
> previews that I've created in IRAF or PGPLOT (or even IDL with PLOT,
> but not with TV).
>
> Choice of color table doesn't seem to matter, nor does using
> /COLOR or not for the postscript device.
>
> Under Linux, I can open the offending postscript files with
> ghostview, and they print with no problem.
>
> Does anyone have any idea what's going on, or other things to try?
> I've looked around David Fanning's book and website and didn't find any
> clues there, no is there anything obvious in Adobe's Illustrator
> support docs on their site.
>
> My system: IDL 5.3 under Redhat Linux 6.2; Illustrator 10.0.1 under
> Mac OS X 10.1.3
>
>
> Here's a minimal program that will generate a postscript file
> that causes this problem:
>
> pro test_tv, myfile, encap
>
> loadct, 0
> set_plot, 'ps'
> device, file=myfile, Encapsulated=encap
> ; Make a 100x100 image with random pixels from
> ; 0 to 2^8 (to get random 8-bit grayscale pixels)
> x = randomu(seed, 100, 100)*(2.^8 - 1)
> tv, x
> device, /close
>
> end
>
> Thanks in advance for your help.
>
> Eric Jensen
> Dept. of Physics and Astronomy
> Swarthmore College
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Sec : U Re: Object Graphics Book Reviewers Needed
Next Topic: Array Subscripting Puzzle

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

Current Time: Wed Oct 08 15:10:49 PDT 2025

Total time taken to generate the page: 0.00718 seconds