Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Text Vectorization in SVG Images Programmatically using C#
// Load input SVG image file from a URL
SVGDocument document = new SVGDocument("http://www1.plurib.us/1shot/2008/circle_design/circles_single.svg");
// Initialize SVGSaveOptions class object
SVGSaveOptions saveOptions = new SVGSaveOptions
{
VectorizeText = true
};
// Save oytput SVG image
document.Save("vectorized_text_out.svg", saveOptions);
// Load an SVG document from a file
var document = new SVGDocument("Text.svg");
// Set text elements vectorization
var saveOptions = new SVGSaveOptions
{
VectorizeText = true
};
// Save the SVG document with specified saveOptions
document.Save("Text_vectorized.svg", saveOptions);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment