Dans.SvgPlotting.Library
25.2711.4233
dotnet add package Dans.SvgPlotting.Library --version 25.2711.4233
NuGet\Install-Package Dans.SvgPlotting.Library -Version 25.2711.4233
<PackageReference Include="Dans.SvgPlotting.Library" Version="25.2711.4233" />
<PackageVersion Include="Dans.SvgPlotting.Library" Version="25.2711.4233" />
<PackageReference Include="Dans.SvgPlotting.Library" />
paket add Dans.SvgPlotting.Library --version 25.2711.4233
#r "nuget: Dans.SvgPlotting.Library, 25.2711.4233"
#addin nuget:?package=Dans.SvgPlotting.Library&version=25.2711.4233
#tool nuget:?package=Dans.SvgPlotting.Library&version=25.2711.4233
Dan's SVG Plotting Library
An easy-to-use library that brings physical plotting and shape-cutting capabilities to normal SVG image files, without any dependencies on Windows or other similar vendors.
NOTE: In this version, all output is in mm. Please create an issue on the GitHub repository if you would like to be able to choose any other type of measurement unit.
Basic Example:
using System;
using System.IO;
using Html;
using SvgPlotting;
namespace SvgPlottingDemo
{
public class Program
{
public static void Main(string[] args)
{
string content = File.ReadAllText(@"C:\Temp\MySvg.svg");
HtmlDocument doc = new HtmlDocument(content);
PlotPointPenStatus pen = PlotPointPenStatus.None;
SvgImageItem svg = new SvgImageItem(doc, 50);
// Optionally add a trace listener to output library activities to console.
Trace.Listeners.Add(new ConsoleTraceListener());
foreach(PlotPointItem plotPointItem in svg.PlotPoints)
{
if(plotPointItem.PenStatus != pen)
{
Console.WriteLine($"Pen Status: {plotPointItem.PenStatus}");
}
switch(plotPointItem.PenStatus)
{
case PlotPointPenStatus.PenDown:
Console.WriteLine($" Line To: {plotPointItem.Point}");
break;
case PlotPointPenStatus.PenUp:
Console.WriteLine($" Move To: {plotPointItem.Point}");
break;
}
}
}
}
}
Updates
Version | Description |
---|---|
25.2711.4233 | Initial public release. |
More Information
For more information, please see the GitHub project: danielanywhere/SvgPlotting
Full API documentation is available at this library's GitHub User Page.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Dans.ConversionCalc.Library (>= 25.1109.1402)
- Dans.Geometry.Library (>= 25.2711.4719)
- Dans.Html.Library (>= 25.2711.4233)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
25.2711.4233 | 32 | 7/12/2025 |