This brief topic entails the process of how to convert Excel to SVG in Node.js. If you are interested in rendering a chart, graph, smart object, or any information inside the Workbook by preserving its quality then saving it to an SVG image is one of the options. Simply access the source XLSX or XLS file from the disk and change Excel to SVG using Node.js using simple API calls supported to work in any operating system like macOS, Linux, or Windows.
Steps to Convert Excel to SVG in Node.js
- Configure the IDE to use Aspose.Cells for Node.js via Java in your application to convert Excel to SVG
- Instantiate a Workbook class object to access the source Excel file for creating an SVG
- Create an instance of the SvgSaveOptions class and set different parameters for the output SVG
- Convert the loaded Excel workbook to Vector Graphics (SVG) file and save it on the disk
In these above mentioned steps, we access the source Excel file from the disk using an instance of the Workbook class and refer to the SvgSaveOptions class object to specify the required properties for the output SVG image. Finally, we convert Excel to vector graphics using Node.js by writing the output images on the disk.
Code to Change Excel to SVG using Node.js
The above example code uses simple API calls to export Excel to SVG using Node.js. The required SVG image can be further customized by using the different options exposed by the SvgOptions class including set sheet index, set merge areas, etc. to manage the preferences of the output file.
In this example, we have covered the process to change Excel to SVG in Node.js using a simple API interface. If you are interested in learning about Excel to HTML conversion, refer to the article on how to convert Excel to HTML in Node.js.