SVG Drawings

Exporting SVG Format To PNG

Aspose.CAD for Javascript in Angular allows developers to export an SVG file to PNG format. SVG to PNG conversion approach works as follows:

  1. Load SVG drawing file using the Image.load method.
  2. Call Image.save while passing an object of PngOptions as the second parameter.

Sample Code

The code below shows how to achieve the same goal using Aspose.CAD for JavaScript