Stellar sleuthing Bob!bobcole wrote: ↑Sat Sep 24, 2022 10:33 pmBernd's sample stack contains the xml header from the Affinity app; it works well.
I tried to skinny down that xml and came up with this minimal header:Taking out either the xml version or the svg viewBox causes the conversion to fail.Code: Select all
<?xml version="1.0"?> <svg viewBox="0 0 280 91">
The lesson that describes this is clearly missing the <svg viewbox="0 0 width height"> statement... seems likely the lesson needs updating/clarifying (although in actual fact it doesn't actually go into drawingSVGCompile, just how you would export the path data - it's just that you can't use said data without this!).
Do we think this is normal behaviour and any xml path passed to drawingSVGCompile should necessarily contain these 2 statements?
If that's the case then at the very least documentation on drawingSVGCompile should be updated to reflect this, to help prevent headaches...
Or would it be worth a bug report/enhancement request for drawingSVGCompile?
The 1st statement is fixed/standard text and the handler could just prepend this to the svg xml path, the second just needs width/height, which could be passed as parameters to drawingSVGCompile?
S.