Automatically replace values (text, attribute values) in an SVG file and export to various file formats.
This extension is useful e.g. for generating images for name badges and other similar items, or for rotating object colors in a semi-automated way.
Data must be given as a CSV (comma separated values) file.
The extension is compatible with Inkscape starting from version 1.2 and requires Python 3.
Visit https://gitlab.com/Moini/nextgenerator for downloading the latest version, finding a set of examples, and some additional usage hints and to report bugs.
Tested with Inkscape 1.2. Works. Updated package to most current version.
Updated again. The extension can now properly encode ampersands in the text values (thanks go to Daniel Maxwell), no longer generates invalid file names, and also can work with templates that contain multiple sets of values (e.g. multiple badges for different persons on a single page).
Updated, current version number is 1.3.
This update fixes a bug where only a single variable in the file name would be replaced.
Tested with Inkscape 1.3, works.
(Updated, thanks Fred!)
Added option to merge resulting PDF files into one. Thanks @gyuris!
Updated again, as the merged files were not always deleted. Now they are, as long as ghostscript does not error out.
Version 1.5: Fixed issues with a popup, missing pdf extension, the request to not merge pdfs being ignored.
Version 1.6: Version number updated, ghostscript request is now conditional, as it was supposed to be.
Version 1.7: Improve ghostscript executable detection on Windows and macOS.
Version 1.8: Fixes a bug where not all images were replaced in a file (https://gitlab.com/Moini/nextgenerator/-/issues/32) .