Convert POTX to DOCM via Java

On Premise Java API for PowerPoint POTX to DOCM 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 DOCM. 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 DOCM.

How to Convert POTX to DOCM 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 DOCM format using save method

POTX File Conversion in Java

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

Using the API, you can also perform POTX file to DOCM conversion with watermark. In order to add a watermark to your DOCM 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 ODT (OpenDocument Text File Format)
POTX TO DOC (Microsoft Word Binary Format)
POTX TO RTF (Rich Text Format)
POTX TO DOTM (Microsoft Word 2007+ Template File)
POTX TO DOCX (Office 2007+ Word Document)
POTX TO WORDML (Microsoft Word 2003 WordprocessingML)
POTX TO DOTX (Microsoft Word Template File )
POTX TO DOT (Microsoft Word Template Files)
POTX TO OTT (OpenDocument Standard Format)