Convert POTX to RTF via Java

On Premise Java API for PowerPoint POTX to RTF conversion within any Java J2SE, J2EE, J2ME applications


Aspose.Total for Java File Format Automation libraries empower Java developers to automate the batch conversion process of PowerPoint POTX to Word RTF. Converting the document is a two-step process and involves using two APIs. We’ll use Aspose.Slides for Java that is a PowerPoint API for presentations manipulation and management to convert POTX to HTML. After that by using feature-rich Word Processing API Aspose.Words for Java we will convert the HTML to RTF.

How to Convert POTX to RTF via Java

  1. Open POTX file using Presentation class
  2. Convert POTX to HTML by using save method and set Html as SaveFormat
  3. Load the converted HTML file using Document class
  4. Save the document to RTF format using save method

POTX File Conversion in Java

For POTX to RTF 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 POTX to RTF with Watermark via Java

Using the API, you can also perform POTX file to RTF conversion with watermark. In order to add a watermark to your RTF document, you can first convert the POTX file to HTML and add a watermark to it. In order to add a watermark, load the newly created HTML file using the Document class, create an instance of TextWatermarkOptions and set its properties, Call Watermark.setText method and pass watermark text & object of TextWatermarkOptions.

Other Conversion Options

POTX TO DOC (Microsoft Word Binary Format)
POTX TO DOTM (Microsoft Word 2007+ Template File)
POTX TO WORDML (Microsoft Word 2003 WordprocessingML)
POTX TO ODT (OpenDocument Text File Format)
POTX TO DOCM (Microsoft Word 2007 Marco File)
POTX TO DOCX (Office 2007+ Word Document)
POTX TO DOT (Microsoft Word Template Files)
POTX TO DOTX (Microsoft Word Template File )
POTX TO OTT (OpenDocument Standard Format)