I wonder if there is any command-line tool available to flatten nested groups with transformations in an SVG?
In my particular case, I am converting a CAD-software produced PDF to SVG and then adding some elements and publishing the modified SVG to a web page for viewing. The response time of the SVG is very sluggish (for panning and zooming) and I found that it is due to a very large number of nested groups inside the SVG, often up to several 100 depth. For each element in the SVG, the browser needs to calculate the position across all its parent nodes...
Obviously this is ridiculous, as all these elements need is one single transformation (matrix). So I wonder if anyone knows of a tool to flatten this (or a C# or Delphi implementation that would do so...).