saveToInkscapeFile
fun Composition.saveToInkscapeFile(file: File, postProcess: (String) -> String = { xml -> xml })(source)
Save a Composition to an Inkscape file. Includes expected XML namespaces and sets an XML header with the view window size. Strips an extra wrapping <g>
tag to make special layer names work with the Axidraw pen plotter.
Parameters
file
Should point to the desired file name and path.
postProcess
Optional function to do post-processing on the SVG XML before saving it.