Aspose.Total for Java is a comprehensive suite of components that enables developers to easily convert XPS to PPS within any Java J2SE, J2EE, or J2ME application. This suite of components includes Aspose.PDF for Java and Aspose.Slides for Java, which are both powerful APIs that allow developers to quickly and easily convert XPS to PPS.
Using Aspose.PDF for Java, developers can export XPS to PPTX, which is a Microsoft PowerPoint presentation format. This API provides a wide range of features that allow developers to manipulate PDF documents, including the ability to convert XPS to PPTX.
Once the XPS document has been converted to PPTX, developers can use Aspose.Slides for Java to convert the PPTX to PPS. This PowerPoint Processing API provides a comprehensive set of features that allow developers to create, edit, and manipulate PowerPoint presentations. It also provides the ability to convert PPTX to PPS, which is a Microsoft PowerPoint show format.
By using Aspose.Total for Java, developers can easily convert XPS to PPS within any Java J2SE, J2EE, or J2ME application. This suite of components provides a comprehensive set of features that allow developers to quickly and easily convert XPS to PPS. With Aspose.PDF for Java, developers can export XPS to PPTX, and with Aspose.Slides for Java, developers can convert PPTX to PPS.
Java API to Convert XPS to PPS
- Open XPS file using Document class
- Convert XPS to PPTX by using save method
- Load PPTX document by using Presentation class
- Save the document to PPS format using
save
method and set
Pps
as SaveFormat
Get Started with Java File Format APIs
You can easily use Aspose.Total for Java directly from a Maven based project and include Aspose.PDF for Java and Aspose.Slides for Java in your pom.xml.
Alternatively, you can get a ZIP file from downloads .
// load XPS file with an instance of Document class
Document document = new Document("template.xps");
// save XPS as PPTX format
document.save("PptxOutput.pptx", SaveFormat.Pptx);
// instantiate a Presentation object that represents a PPTX file
Presentation presentation = new Presentation("PptxOutput.pptx");
// save the presentation as Pps format
presentation.save("output.pps", SaveFormat.Pps);
Open Encrypted XPS File via Java
While loading XPS file format, your document might be password protected. Aspose.PDF for Java allows you open encrypted documents as well. In order to open the encrypted file, you can initialize new instance of the Document class and pass filename and password as arguments.
// open XPS document
Document doc = new Document("input.xps", "Your@Password");
// save XPS as PPTX format
document.save("PptxOutput.pptx", SaveFormat.Pptx);
Save PPS File with Predefined View Type via Java
After converting XPS to PPS, you can also add predefined view type for your presentation. Aspose.Slides for Java provides a facility to set the view type for the generated presentation when it is opened in PowerPoint through the ViewProperties class. The setLastView property is used to set the view type by using the ViewType enumerator.
// instantiate a Presentation object that represents a PPTX file
Presentation presentation = new Presentation("PptxOutput.pptx");
// set view type
presentation.getViewProperties().setLastView((byte) ViewType.SlideMasterView);
// save the presentation as Pps format
presentation.save("output.pps", SaveFormat.Pps);
Explore XPS Conversion Options with Java
What is XPS File Format?
XPS, short for XML Paper Specification, is a file format created by Microsoft to represent fixed-layout documents. XPS files contain the content and print settings of a document, making them suitable for preserving the layout and appearance of a document across different devices and platforms.
The XPS format is based on XML (eXtensible Markup Language), a widely used markup language for structured data representation. XPS files encapsulate document content, such as text, images, vector graphics, and annotations, in a structured XML format. This enables easy interpretation and rendering of the document’s visual elements.
XPS files are conceptually similar to PDF (Portable Document Format) files in that they both aim to provide a reliable way to present and share documents while preserving their formatting and layout. However, PDF files have gained broader support across different software applications and hardware devices, making them more widely accepted and compatible.
To view and work with XPS files, Microsoft provides an XPS Viewer as part of the Windows operating system. Various third-party applications and tools also offer support for opening, creating, and converting XPS files. However, compared to PDF, the range of software and hardware supporting the XPS format may be more limited.
What is PPS File Format?
The PPS file format is an extension used by Microsoft PowerPoint to save presentations specifically designed for slideshow purposes. It stands for “PowerPoint Slide Show” and is closely related to the PPT (PowerPoint Presentation) format. PPS files contain a collection of slides, each with its own content, layout, and formatting.
Unlike PPT files, which open in the PowerPoint editor, PPS files are intended to be opened directly in slideshow mode. When a PPS file is opened, it launches the presentation in full-screen mode, immediately displaying the slides in the order they were created. This allows for a seamless and uninterrupted presentation experience without the need for manual navigation.
PPS files are commonly used for sharing presentations with others who only need to view the slides rather than edit them. By saving a presentation as a PPS file, you ensure that recipients can open and view the presentation as intended without accidentally modifying the content. This makes it a convenient format for distributing slideshows for meetings, conferences, or self-running presentations.
The PPS format retains all the visual elements, animations, transitions, and multimedia content included in the original PowerPoint presentation. It provides a convenient way to deliver polished and professional-looking slideshows that maintain their intended design and effects.
To open and view PPS files, recipients typically need a compatible software application such as Microsoft PowerPoint, PowerPoint Viewer, or other presentation software capable of reading PPS files. These applications allow users to enjoy the full presentation experience without the need for authoring or editing capabilities.