package com.example;

public class main
{
    public static void main(String[] args)
    {
        // Set the path to the working directory.
        String dir = "/Desktop/";
        // Load the source SVG document by initializing a constructor of the SVGDocument class. 
        com.aspose.html.dom.svg.SVGDocument svgDocument = new com.aspose.html.dom.svg.SVGDocument(dir+"input.svg");
        // Instantiate an object of the XpsSaveOptions class. 
        com.aspose.html.saving.XpsSaveOptions options = new com.aspose.html.saving.XpsSaveOptions();
        // Invoke the setBackgroundColor to set the background color. 
        options.setBackgroundColor(com.aspose.html.drawing.Color.getCyan());
        // Output file path
        String outputFile = dir+"SVGtoXPS_Output.xps";
        // Convert SVG to XPS by calling the convertSVG function. 
        com.aspose.html.converters.Converter.convertSVG(svgDocument, options, outputFile);
    }
}