psidtopgm

ALOBO alobo at u.ija.csic.es
Mon May 2 11:01:21 EDT 1994


Hi!, this is not strictly grass but...
I'm trying to convert a PostScript into something that I could to my word
processor, a PICT or TIFF file for example. Using psidtopgm from
the Jef Poskanzer's routines seems the most obvious way, but the way to
do it is not clear at all:

""To use it you have to manually extract the readhexstring data portion from your PostScript file, and then
give the width, height, and bits/sample on the command line.
Before you attempt this, you should
at least
read the description of the "image" operator in the PostScript Language
Reference Manual."""

Well, I don't have the manual and have no idea of what the readhexstring data portion is. Hewre is the beginning of my ps file. Anybody out there knows
what to delete and where can I get the width, height, and bits/sample?

Thanks

*******
%!PS-Adobe-3.0 EPSF-3.0
%%Title: (S-PLUS Graphics)
%%Creator: S-PLUS
%%For: (Agustin Lobo-Aleu)
%%CreationDate: Thu Apr 28 16:55:29 1994
%%BoundingBox: 20 55 592 737
%%Pages: (atend)
%%DocumentData: Clean7Bit
%%DocumentNeededResources: (atend)
%%EndComments
%%BeginProlog
150 dict begin gsave
/bd {bind def} def
/PVer 3100 def % version
% drawing commands
/I {Coord SetPage 1 setlinecap 1 setlinejoin
    LineTypes {RastersPerPoint ScaleArray} forall
******

Agus



More information about the grass-user mailing list