public static void Run() { // The path to the documents directory. string dataDir = RunExamples.GetDataDir_Presentations(); //Instantiate a Presentation object that represents a presentation file using (Presentation pres = new Presentation(dataDir + "Convert_XPS_Options.pptx")) { //Instantiate the TiffOptions class Aspose.Slides.Export.XpsOptions opts = new Aspose.Slides.Export.XpsOptions(); //Save MetaFiles as PNG opts.SaveMetafilesAsPng = true; //Save the presentation to XPS document pres.Save(dataDir + "demo.xps", Aspose.Slides.Export.SaveFormat.Xps, opts); } }