Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active June 2, 2021 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/588ee91045549d3cc8167b1a1377744b to your computer and use it in GitHub Desktop.
Save aspose-com-gists/588ee91045549d3cc8167b1a1377744b to your computer and use it in GitHub Desktop.
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