// For more examples, https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-dotnet/tree/master/Examples

// Get client credentials from https://dashboard.aspose.cloud/
string clientSecret = "c71cfe618cc6c0944f8f96bdef9813ac";
string clientID = "163c02a1-fcaa-4f79-be54-33012487e783";

// create an instance of PdfApi
PdfApi pdfApi = new PdfApi(clientSecret, clientID);

// name of input JPG image
String inputFile = "Simple.xps";

// load source XPS from local drive
using (var stream = System.IO.File.OpenRead(inputFile))
{
    // upload XPS file to cloud storage
    pdfApi.UploadFile("input.xps", stream);

    // call the API to convert XPS file to PDF format
    var resltant = pdfApi.PutXpsInStorageToPdf(resultantPDF,"input.xps");
    
}