MAPresso: Help: EPS Creation




<param NAME="psbtn" VALUE="1">
This parameter adds a button for writing an EPS file to the java console.

Pushing the "PS"-button writes an encapsulated PostScript file (EPSF) to a new window.

The result should look like this:


%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 0 0 600 385
%%Creator: MAPresso, Version 1.1.02, © Adrian Herzog
%%Title: Links-Rechts Nationalratswahlen 1999
%%CreationDate: Mon Jun 11 00:07:52 CEST 2001
%%EndComments
/PSCdict 100 dict def

(...)

grestore showpage
%%Trailer
end
%%EOF


You can copy this text (starting exactly with "%!PS-" and ending with "%%EOF") and (using a text editor) save it as text file (use the suffix ".eps"). Word users: save the eps-code as text (Unicode does not work)! Then:

  • include this file directly into a text processor document and scale it
  • Mac OS X: just open the file in "Preview" (and convert it e.g. to a pdf)
  • use a online service to convert it to pdf as ps2pdf.com
  • use Ghostscript directly


Something marginal (from a question): How can I change the color/width of the polygon lines?
Change the following lines:

line 19: change setgray parameter (0: black, 1: white), or colored (rgb): 1 0 0 C

/v {newpath moveto {rlineto} repeat closepath gsave fill grestore 0.8 setgray stroke} bdef 

line 46
gsave 0 setlinecap 0 setlinejoin 1 setmiterlimit  1.5 setlinewidth  gsave 

line about 55 from bottom: otherwise you get a poor legend
0.15 setlinewidth  0 setgray   /Helvetica TF 10 SF 370 476 m  (43.1) show 0.0080 0.22 0.345 C 395 469 14 12 F


Feedback

If you have problems with this new option, please contact me.