Export to SVG

Previous | Contents | Index | Next

# 2.5.4 Export to SVG

This menu item displays a file selection dialog where a file name for exported objects can be entered. All selected (Section 2.2.16) objects are exported to the file. The export file will have an `svg` extension.

Files in SVG format can be used for different purposes.

- SVG files can be loaded into many drawing programs. This makes it possible to enhance and resize the image. Vector images have the advantage of allowing lossless resizing.
- Most modern browsers support SVG as an image format. So the resulting file can directly be used to publish your plan on the web. By adding a bit of Javascript, zooming and panning can be enabled. Appropiate scripts can easily be found using your favorite search engine. The generated SVG uses the layout description as a title that is shown by some browser. Also the drawing has an 'id' for manipulation by Javascript. This id is derived from the filename by removing all spaces and sticking the word 'id' in front. Eg exporting `stonega.xtc` the resulting id will be `idstonega`.