# Export selection as ...

Extension to export the current selection into different formats like SVG, DXF or PDF.

This extension is a modified version of the original source code. Original Source: [https://github.com/mireq/inkscape-export-selection-as-svg](https://github.com/mireq/inkscape-export-selection-as-svg)

### Usage from commandline:

```bash
inkscape --actions="select-by-id:object_id; verb:sk.linuxos.export_selection.noprefs" --batch-process input.svg
```

### Important Notes

- Replace by png: Please convert strokes to paths. Otherwise the bounding box of the object is wrong. That leads to larger graphics in relation to the original, while the borders are cut off

## Example

### Create some objects

[![grafik.png](https://wiki.stadtfabrikanten.org/uploads/images/gallery/2025-05/scaled-1680-/JZHmMsUHzJu57pw0-grafik.png)](https://wiki.stadtfabrikanten.org/uploads/images/gallery/2025-05/JZHmMsUHzJu57pw0-grafik.png)

### Run extension and get the result

[![grafik.png](https://wiki.stadtfabrikanten.org/uploads/images/gallery/2025-05/scaled-1680-/jnIfRedvvoCSUJXm-grafik.png)](https://wiki.stadtfabrikanten.org/uploads/images/gallery/2025-05/jnIfRedvvoCSUJXm-grafik.png)

[![grafik.png](https://wiki.stadtfabrikanten.org/uploads/images/gallery/2025-05/scaled-1680-/qj40eQyutswidFGA-grafik.png)](https://wiki.stadtfabrikanten.org/uploads/images/gallery/2025-05/qj40eQyutswidFGA-grafik.png)