public SvgVersion Version { get; set; }
The SVG version of the document
The initial version of Version depends on the original data and read from the SVG data directly.
Setting the value to a different value will be used when saving the document using SaveToFile or to SaveToStream.
This example will convert an SVG file from version any version to 1.1
using Leadtools;using Leadtools.Codecs;using Leadtools.Drawing;using Leadtools.Forms.DocumentWriters;using Leadtools.Svg;using Leadtools.Document.Writer;public void SvgVersionExample(){// Assume the SVG file is located herestring srcFileName = Path.Combine(LEAD_VARS.ImagesDir, "Page1.svg");string dstFileName = Path.Combine(LEAD_VARS.ImagesDir, "Page1Version11.svg");// Load the SVG from fileusing (SvgDocument document = SvgDocument.LoadFromFile(srcFileName, null)){// Show the versionConsole.WriteLine("Original version is: " + document.Version);if (document.Version != SvgVersion.v11){// Convert itdocument.Version = SvgVersion.v11;}// Save itdocument.SaveToFile(dstFileName, null);}// Check itusing (SvgDocument document = SvgDocument.LoadFromFile(dstFileName, null)){Console.WriteLine("New version is: " + document.Version);}}static class LEAD_VARS{public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images";}