Article View: comp.lang.postscript
Article #5428Re: converting postscript to encapsulated postscript
From: Maj Brian Boyter
Date: Sun, 21 Apr 1991 13:34
Date: Sun, 21 Apr 1991 13:34
47 lines
3198 bytes
3198 bytes
mass@hobiecat.cs.caltech.edu (Mass Sivilotti) writes:
>Does anybody out there have a good way to generate these bitmapped previews,
>and include them in an EPSF file. In particular, Word for Windows on the PC
I made some modifications to a program called "xv".... One of the mods enables
xv to output an eps file... The process isn't especially streamlined, but here's
how I do it:
1) use a postscript interpreter to get the postscript image rendered onto the
screen of my Sun workstation (I use "pageview", an OpenWindows utility)...
2) Capture the rendered postscript from the Sun's screen into a rasterfile
(I use "snapshot", another OpenWindows utility)...
3) Read in the rasterfile and output the EPS file using "xv"... I have found
that I usually have to crop the image, and I also have to edit the colormap...
The problem is that although the EPS spec will permit a "gray-scale" image,
most programs that I have seen that use the preview portion of the EPS only
can handle a bitmap... So, you have to tell "xv" which colors you want mapped
to black and which colors you want mapped to white... Same is true for gray
scale images... I guess I could have written code that would have picked
the color -> black/white mapping automatically, but it probably wouldn't map
it the way the user really wanted it mapped...
4) the output of xv is an EPS file with a bitmap (i.e. black-and-white) preview
section, followed by a postscript "image".... The final step is to discard
the postscript image, and replace it with the original postscript file...
I'm not partial to having to go through 4 steps to make an EPS file...
If someone has a better way of doing this, I'd like to hear it...
I'd be glad to give out my modified version of "xv".... I sent the changes to the author
of xv (John Bradley - bradley@cis.upenn.edu), but he's working on making xv into
a commercial product so I'm not sure if/when he's gonna publish another release of
xv....
Brian
boyter@fstc-chville.army.mil
--
---------------------------------------------------------------
Maj. Brian A Boyter
US Army Foreign Science & Technology Center
Charlottesville, Va 22901 __
off: (804)980-7362 ( )
home: 973-9440 { }
( )
boyter@fstc-chville.army.mil ||
||
Just say glow...... _______< >_______
Technical Details
Message-ID:
<1991Apr21.133440.7932@bimbo.uucp>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!emory!gatech!purdue!haven!uvaarpa!murdoch!bimbo!boyterReferences:
<GLOBUS.91Apr11154840@wk208.nas.nasa.gov> <14010@adobe.UUCP> <MASS.91Apr20195134@hobiecat.cs.caltech.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!emory!gatech!purdue!haven!uvaarpa!murdoch!bimbo!boyter From: boyter@bimbo.uucp (Maj Brian Boyter) Newsgroups: comp.lang.postscript Subject: Re: converting postscript to encapsulated postscript Message-ID: <1991Apr21.133440.7932@bimbo.uucp> Date: 21 Apr 91 13:34:40 GMT References: <GLOBUS.91Apr11154840@wk208.nas.nasa.gov> <14010@adobe.UUCP> <MASS.91Apr20195134@hobiecat.cs.caltech.edu> Distribution: comp.lang.postscript Organization: Boyter Control Lines: 47