export_file
Convert SVG files to PNG, PDF, PS, EPS, or SVG with control over DPI, size, margins, area, background, and text-to-path. It verifies exported files are non-empty, preventing silent export failures.
Instructions
Export to PNG, SVG, PDF, PS or EPS with full control: dpi, size, margin, area, background, text-to-path, compression. Verifies the output exists and is non-empty, because Inkscape exits 0 on an empty export.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Export only the object with this id. | |
| dpi | No | Export resolution in dots per inch. | |
| area | No | Which sub-area of the document to work on. | |
| width | No | Width. | |
| height | No | Height. | |
| margin | No | Extra space added around the result. | |
| id_only | No | Export only the selected id, hiding everything else. | |
| ps_level | No | PostScript level. | |
| area_page | No | Export the page bounds. | |
| plain_svg | No | Strip Inkscape-specific markup on SVG export. | |
| background | No | Background colour for the export. | |
| input_path | No | Source file to read. | |
| output_path | No | File to write. Overwritten if it exists. | |
| pdf_version | No | PDF version string. | |
| area_drawing | No | Export the drawing bounds rather than the page. | |
| text_to_path | No | Outline text on export, so fonts are not required. | |
| ignore_filters | No | Skip SVG filters when exporting. | |
| png_compression | No | PNG compression level, 0..9. | |
| background_opacity | No | Background opacity, 0..1. |