1FIG2SXD(1)                  General Commands Manual                 FIG2SXD(1)
2
3
4

NAME

6       fig2sxd - utility to convert .fig to .sxd
7

SYNOPSIS

9       fig2sxd [-w] [-l(ine)w(idth)1 l] figfile sxdfile
10

DESCRIPTION

12       The  program  tries to convert the given file in xfig format into a sxd
13       file for OpenOffice.org Draw. If figfile ends with .fig  or  .xfig  and
14       sxdfile  is  omitted, the output file will be named like figfile ending
15       with .sxd instead of .(x)fig.  Using - for figfile  makes  the  program
16       read from stdin so that it is possible to use
17
18              pstoedit -f fig file.ps - | fig2sxd - file.sxd
19
20       to convert ps files. (For files with many objects you might want to use
21       something like
22
23              pstoedit  -f  'fig:-startdepth  9999'  file.ps  -  |  fig2sxd  -
24              file.sxd
25
26       to  get  more  layers; the output of pstoedit then is no longer a valid
27       xfig file, but it makes the z ordering of the objects in OpenOffice.org
28       Draw stay correct.) Using - for sxdfile makes the program write to std‐
29       out. With the -linewidth1 (or -lw1) option, the  width  of  lines  with
30       thickness  1  in xfig can be set, unit is 1 cm. Using 0 here gives fine
31       lines. Example:
32
33              pstoedit -f 'fig:-startdepth 9999' file.ps - | fig2sxd -lw1 0  -
34              file.sxd
35
36       With  the  -w option, out-of-specification values are only warnings but
37       will be sanitized.
38

DEFICIENCIES

40       Not all of the .fig objects are converted correctly: splines look quite
41       similar, but are not exactly the same; text placement might be a little
42       bit wrong, especially for very small font sizes; hatches look different
43       in  many  cases;  hollow arrows are not supported and replaced by their
44       filled counterparts. There are  various  other  things  that  could  be
45       improved.
46
47       It  looks  like  OpenOffice.org cannot read xml attribute values longer
48       than 64kB as they might  appear  for  very  long  polygons/-lines.  For
49       unfilled polylines, fig2sxd therefore creates several smaller polylines
50       of 500 points each and groups them  together.  Splitting  an  arbitrary
51       filled polygon is not trivial and not implemented.
52

SEE ALSO

54       pstoedit(1), xfig(1) and http://fig2sxd.sourceforge.net/ (for updates).
55

AUTHOR

57       Program   and   manual   page   were   written   by   Alexander  Bürger
58       <acfb@users.sourceforge.net>.
59
60
61
62                                                                    FIG2SXD(1)
Impressum