[GRASSLIST:4521] making an eps file

Hello all,

does anyoen know where I can find a descrption of the eps format, so I could
write a program to make an eps output?
I'm learning C and I think this could be a good exercise.

thanks all
--
+-------------------------------------------------+
        Carlos Henrique Grohmann - Guano
  Geologist M.Sc - PhD Student at IGc-USP - Brazil
     Linux User #89721 - guano at usp dot br -
+-------------------------------------------------+

Hi Carlos,
I think this document about encapsulated postscript might help you :
http://www-cdf.fnal.gov/offline/PostScript/5002.PDF

If you want to "produce" your own graphics, also take a look on the GD Library
http://www.boutell.com/gd/

HTH,
Eve

Carlos Henrique Grohmann wrote:

Hello all,

does anyoen know where I can find a descrption of the eps format, so I could
write a program to make an eps output?
I'm learning C and I think this could be a good exercise.

thanks all
--
+-------------------------------------------------+
        Carlos Henrique Grohmann - Guano
  Geologist M.Sc - PhD Student at IGc-USP - Brazil
     Linux User #89721 - guano at usp dot br -
+-------------------------------------------------+

Carlos,

The standard reference for PostScript is the "Red Book", formally known as
"PostScript Language Reference" in its 3rd edition from Adobe. EPS stands
for Encapsalated PostScript and simply has a bounding coordinate box
specified. PDF and PS/ESP are similar except PDF lacks the programming
elements (and therefor cannot carry malicious code to other machines). PDF
also supports features like transparency. Amazon.com lists the book for
$34
(http://www.amazon.com/exec/obidos/tg/detail/-/0201379228/qid=1097682963/sr=8-2/ref=pd_csp_2/104-6003528-2503115?v=glance&s=books&n=507846).
The publisher's website is:
(http://www.awprofessional.com/title/0201379228). When writing your
program I suggest including support for turning Grass themes/datasets into
EPS layers.

Best of luck,

_Nathaniel Vaughn Kelso
  Research Cartographer
  National Geographic Maps
  1145 - 17th Street NW
  Washington DC 20036

  202.775.7864 (phone)
  202.429.5704 (fax)
  nkelso@ngs.org

Hello all,

does anyoen know where I can find a descrption of the eps format, so I
could
write a program to make an eps output?
I'm learning C and I think this could be a good exercise.

thanks all
--
+-------------------------------------------------+
        Carlos Henrique Grohmann - Guano
  Geologist M.Sc - PhD Student at IGc-USP - Brazil
     Linux User #89721 - guano at usp dot br -
+-------------------------------------------------+

I don't know if this will help, but there is a program called ps2eps that is already out there. It converts postscript into encapsulated post script by putting a bounding box around the original file. You can find it here

http://www.telematik.informatik.uni-karlsruhe.de/~bless/ps2eps.html.en

G'luck,
-Ian

On Oct 13, 2004, at 8:35 AM, Carlos Henrique Grohmann wrote:

Hello all,

does anyoen know where I can find a descrption of the eps format, so I could
write a program to make an eps output?
I'm learning C and I think this could be a good exercise.

thanks all
--
+-------------------------------------------------+
        Carlos Henrique Grohmann - Guano
  Geologist M.Sc - PhD Student at IGc-USP - Brazil
     Linux User #89721 - guano at usp dot br -
+-------------------------------------------------+

nvk2@humboldt.edu wrote:

The standard reference for PostScript is the "Red Book", formally known as
"PostScript Language Reference" in its 3rd edition from Adobe. EPS stands
for Encapsalated PostScript and simply has a bounding coordinate box
specified.

There's more to it than that. An EPS file is a PostScript file which
conforms to the Document Structuring Conventions (DSC), and includes a
preview bitmap. The DSC cover not only the bounding box, but also
things such as page numbers, resources (e.g. raster images) etc.

PDF and PS/ESP are similar except PDF lacks the programming
elements (and therefor cannot carry malicious code to other machines). PDF
also supports features like transparency. Amazon.com lists the book for
$34
(http://www.amazon.com/exec/obidos/tg/detail/-/0201379228/qid=1097682963/sr=8-2/ref=pd_csp_2/104-6003528-2503115?v=glance&s=books&n=507846).
The publisher's website is:
(http://www.awprofessional.com/title/0201379228). When writing your
program I suggest including support for turning Grass themes/datasets into
EPS layers.

Note that a PDF version of the Red Book can be downloaded from Adobe's
web site:

  http://partners.adobe.com/asn/tech/ps/specifications.jsp

--
Glynn Clements <glynn.clements@virgin.net>

Carlos Henrique Grohmann wrote:

does anyoen know where I can find a descrption of the eps format, so I could
write a program to make an eps output?

EPS is "Encapsulated PostScript", and it's essentially just PostScript
which conforms to certain conventions. Note that PostScript isn't a
data format but a full programming language.

I'm learning C and I think this could be a good exercise.

Not really. Writing a C program to generate PostScript would teach you
more about programming in PostScript than programming in C.

--
Glynn Clements <glynn.clements@virgin.net>