by abenedik
31. January 2009 20:36
I have got some great test svg files and some very helpful user feedback. This lead to the following improvements in Ab2d.ReaderSvg:
- Added AutoSize property. If its value is true (default - as previous version) the size of returned Canvas is calculated from the size of objects it contains. This is useful if you do not care whether the objects were drawn on the Letter or A4 page - you just need the returned object to be as big as its containg objects. If AutoSize is false the size defined in svg element is used for the size of returned Canvas. This is useful if you were working on a Letter page and would like to preserve the positions of objects inside the Letter area.
- Improved measuring of objects when AutoSize is true (now transformed elements are correctly measured).
- Improved ellipse - before svg ellipse was converted into Path WPF element - now it is converted into Ellipse WPF element
- Added reading elements inside svg link element (before the whole element was skipped). Linking is not supported, but its content is now rendered.
- Added support for underline and line-through text decorations.
- Improved processing of text and tspan svg elements.
- Added help file.
The ViewerSvg has been also improved to support new AutoSize property. Now it also has an automatic error reporting - when an exception occurs in ViewerSvg or Ab2d.ReaderSvg, user can now submit error information to help resolve the problems.
The new automatic error reporting is now part of new Paste2Xaml as well.
To install the new version, download the installer from my Downloads page and simply install it over the previous version (no need to uninstall).