Convert WORD to PPT via Java

WORD to PPT conversion by using on premise Java API within any Java J2SE, J2EE, J2ME applications without using Microsoft® PowerPoint or Word

 

Often times developers have to convert WORD file to PPT 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 WORD 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 PPT.

How to Convert WORD to PPT via Java

  1. Open WORD file using Document class
  2. Convert WORD file to HTML by using save method
  3. Initialize a new Presentation object
  4. Extract content from HTML file using BufferedReader and write the content in your presentation file
  5. Save the document to PPT using save method

WORD File Conversion in Java

For WORD to PPT 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 .

Convert Protected WORD to PPT via Java

The API also allows you to convert password-protected WORD documents to PPT. If your input WORD document is password protected, you cannot convert it to PPT 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 WORD to PPT with Watermark via Java

Using the API, you can also perform WORD file to PPT conversion with watermark. In order to add a watermark to your PPT document, you can first export WORD 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 PPT.

Other Conversion Options

DOCX TO PPS (PowerPoint Slide Show)
DOCX TO PPSX (PowerPoint Slide Show)
DOCX TO PPTX (Open XML presentation Format)
DOCX TO POTX (Microsoft PowerPoint Template Presentation)
DOCX TO POT (Microsoft PowerPoint Template Files)
DOCX TO PPTM (Macro-enabled Presentation File)
DOCX TO PPSM (Macro-enabled Slide Show)
DOCX TO ODP (OpenDocument Presentation Format)
DOCX TO POTM (Microsoft PowerPoint Template File)
DOCX TO CSV (Comma Seperated Values)
DOCX TO DIF (Data Interchange Format)
DOCX TO FODS (OpenDocument Flat XML Spreadsheet)
DOCX TO ODS (OpenDocument Spreadsheet)
DOCX TO SXC (StarOffice Calc Spreadsheet)
DOCX TO TSV (Tab Seperated Values)
DOCX TO XLAM (Excel Macro-Enabled Add-In)
DOCX TO XLTM (Excel Macro-Enabled Template)
DOCX TO XLS (Microsoft Excel Spreadsheet (Legacy))
DOCX TO XLSB (Excel Binary Workbook)
DOCX TO XLSM (Macro-enabled Spreadsheet)
DOCX TO XLSX (Open XML Workbook)
DOCX TO XLT (Excel 97 - 2003 Template)
DOCX TO XLTM (Excel Macro-Enabled Template)
DOCX TO XLTX (Excel Template)