Often times developers have to convert DOCX file to PPSM programmatically. By using the File Automation Java libraries Aspose.Total for Java you can automate the rendering process in a few simple steps. You can load your DOCX file by using Aspose.Words for Java and convert it to HTML. After that by using powerful PowerPoint manipulation Java API Aspose.Slides for Java you can create a new Presentation, write HTML content in it, and save it as PPSM.
How to Convert DOCX to PPSM via Java or Online App
- Open DOCX file using Document class
- Convert DOCX file to HTML by using save method
- Initialize a new Presentation object
- Extract content from HTML file using BufferedReader and write the content in your presentation file
- Save the document to PPSM using save method
DOCX File Conversion in Java
For DOCX to PPSM file conversion, you can easily use Aspose.Total for Java directly from a Maven based project and include libraries in your pom.xml.
Alternatively, you can get a ZIP file from downloads .
Free Online Converter for DOCX to PPSM
Convert Protected DOCX to PPSM via Java
The API also allows you to convert password-protected DOCX documents to PPSM. If your input DOCX document is password protected, you cannot convert it to PPSM format without using the password. In order to open a encrypted document you can set the correct password in LoadOptions object and pass it to the Document constructor.
Convert DOCX to PPSM with Watermark via Java
Using the API, you can also perform DOCX file to PPSM conversion with watermark. In order to add a watermark to your PPSM document, you can first export DOCX to HTML and write HTML content in Presentation object. After that to add a watermark, you can add text using addTextFrame, set all the relevant options like color, fillType and more and can save the document to PPSM.
Explore DOCX Conversion Options with Java
What is DOCX File Format
DOCX is a file format for Word documents, developed by Microsoft. It is a XML-based format that allows for more complex document structures than the older DOC format, and supports features such as document encryption, digital signatures, and watermarks. DOCX files are also smaller in size than their DOC counterparts, making them more efficient to store and transmit.
Read MoreWhat is PPSM File Format
Macro-enabled Slide Show PPSM format is a file format that allows you to create presentations that contain macros. Macros are small programs that can automate tasks, and they can be used in presentations to automate tasks such as playing a video or animating a slide. The PPSM format is similar to the PPTX format, but it uses a different file extension (PPSM instead of PPTX). PPSM files can be opened in PowerPoint 2013 or later. When you create a presentation in the PPSM format, you can add macros to the slides. To add a macro to a slide, you first need to create a macro in PowerPoint. To do this, click the File tab, then click Options. In the PowerPoint Options dialog box, click Customize Ribbon. In the Customize Ribbon dialog box, click the Macros tab, then click New.In the Macro dialog box, enter a name for the macro, then click the Browse button. In the Browse dialog box, locate the PowerPoint file that contains the macro code, then click Open.In the Macro dialog box, click the Options button. In the Macro Options dialog box, select the Run Macro On Slide Show check box, then click OK.Now that the macro is created, you can add it to a slide. To do this, click the Insert tab, then click the Macro button. In the Macro dialog box, select the macro that you want to insert, then click Insert. The macro will now be added to the slide. To run the macro, click the Slide Show tab, then click From Beginning. The macro will now run automatically when the slide is displayed.
Read More