How to convert PowerPoint to XPS

The XML Paper Specification (XPS) format is basically an electronic representation of digital documents based on XML. It is a paginated fixed-layout format that retains the look and feel of your electronic documents. As a form of electronic paper, the XPS format provides a way in which you can easily create, share, print and save digital documents.

This article demonstrates how to convert PowerPoint to XPS, here are the steps we follow:

Step 1: Create an instance of presentation document.

Presentation ppt = new Presentation();

Step 2: Load the ppt file.

ppt.LoadFromFile("source.pptx", FileFormat.Pptx2010);

Step 3: Save to the XPS file.

ppt.SaveToFile("source.xps", FileFormat.XPS);

Step 4: Launch and view the XPS file.


Full Code:

using Spire.Presentation;
namespace PPTtoXPS
    class Program
        static void Main(string[] args)
            Presentation ppt = new Presentation();
            ppt.SaveToFile("source.xps", FileFormat.XPS);
Imports Spire.Presentation
Namespace PPTtoXPS
	Class Program
		Private Shared Sub Main(args As String())
			Dim ppt As New Presentation()
			ppt.SaveToFile("source.xps", FileFormat.XPS)
		End Sub
	End Class
End Namespace


How to convert PowerPoint to XPS?