Aspose.SVG for .NET is a comprehensive SVG file processing API for developers to programmatically create, load, edit, convert, and process scalable vector graphics (SVG) files. The API provides various methods to manipulate SVG vectors seamlessly and offers advanced processing features such as editing and merging SVG files. Using our API, developers can build specialized applications to convert SVG files to PDF and XPS documents and JPEG, GIF, BMP, PNG, and TIFF images. It helps users build desktop or web-based solutions capable of handling SVG file manipulation requests and offering scalability to improve performance and response times.
The .NET SVG processing API enables end users to edit SVG files, rotate SVGs, merge multiple SVGs into a single file, optimize and resize SVG files, convert SVG vectors to raster images, use XPath Query to perform content navigation, encode various image files to Base64, and do more. Our API also supports converting raster images to vector graphics within your .NET apps. This feature is useful for replacing the existing raster graphics in a web project with vectors, which improves rendering, compatibility, and data visualization. Aspose.SVG for .NET is a dynamic toolkit that unlocks powerful SVG processing capabilities and covers all your SVG file manipulation and parsing requirements.
Please visit the System Requirements page before getting started with the .NET SVG processing API. This page lists the recommended operating system, framework, development environment, and other settings. By complying with the requirements outlined on this page, you can enjoy a hassle-free API usage experience.
Please download the MSI installer or the DLLs of the library from the downloads section. You can also use the NuGet package for setting up the .NET library for SVG processing. The command for the Visual Studio package manager console is provided below:
Aspose.SVG for .NET offers immaculate SVG file processing capabilities to developers and helps augment the functionality of the existing solutions. It is a robust library that developers can use to integrate SVG editing, conversion, and other manipulation features into their applications. Our API provides SVG optimization capability, which makes the SVG vectors more efficient. In this section, we will learn to optimize SVG files using the .NET SVG processing API and review how to convert SVG to PDF easily.
Optimizing SVG files helps improve efficiency while not compromising the quality of the vector graphics. Let’s review the following C# coding example to learn more about SVG optimization.
// Load the input SVG file with SVGDocument var document = new SVGDocument("C:\\Files\\sample.svg"); // Specify optimization options var options = new SVGOptimizationOptions(); // Path optimization options.PathOptimizationOptions.FloatPrecision = 2; options.PathOptimizationOptions.ArcBuildingThreshold = 2; options.PathOptimizationOptions.ArcBuildingTolerance = 1; // Optimize document SVGOptimizer.Optimize(document, options); // Save the document to a file document.Save("C:\\Files\\optimized.svg");
SVG to PDF conversion enhances cross-platform file collaboration as PDF documents are viewable across various devices. Please check out the code sample below to learn how to convert SVG to PDF format using the .NET API for SVG processing.
// This code example showcases SVG to PDF conversion // Load the source SVG file var document = new SVGDocument("C:\\Files\\Fill-Circle.svg"); // Initialize an instance of the PdfSaveOptions class var saveOptions = new PdfSaveOptions(); saveOptions.BackgroundColor = System.Drawing.Color.DarkBlue; // Convert SVG to PDF Converter.ConvertSVG(document, saveOptions, "C:\\Files\\Circles_out.pdf");
You can find more coding examples of Aspose.SVG for .NET API on the GitHub examples page. We provide Free Online SVG Processing Apps to convert and merge SVG vectors and convert raster images to vector graphics on the fly using your mobile devices, so please feel free to check out our free apps.
Aspose.SVG for .NET offers unmatched platform independence and cross-platform compatibility with Windows, Mac, and Linux operating systems. Developers can use the operating environment they like most to build feature-rich SVG manipulation applications. The .NET SVG processing API lets developers focus on software development and not worry about issues related to integration owing to its support for multiple .NET frameworks. From parsing and generating SVG content to advanced features like CSS styling and DOM manipulation, our library ensures a smooth and intuitive development experience. Use the .NET API to simplify the software development lifecycle for your end users and upgrade your document processing solutions independently.
Aspose.SVG for .NET offers dynamic SVG vector loading, editing, conversion, and processing features for software developers to upgrade their applications with these capabilities. Our API allows merging and optimizing SVG files and has many other features to manipulate SVG vectors.
The .NET API for SVG processing supports SVG files and lets end users export SVG vectors to PDF and XPS documents, as well as JPEG, BMP, GIF, and PNG images. These raster images can be converted to SVG vectors using our API.
Yes, we provide coding examples for developers to help them with the initial learning curve. These code samples are available on the GitHub examples page of the API and cover various use cases that API users may come across.
Yes, our API is secure for sensitive data. We ensure the safety and integrity of your data and take all necessary measures to protect your files processed using our products.
Absolutely! The .NET SVG processing library is compatible with multiple .NET frameworks and runs smoothly on various operating systems. You do not need to install third-party software for processing SVG vectors using the library.
Checkout our support channels for help with your questions related to Aspose product API features and working.