# Convert PPTM to POTX in Node.js

> Convert PPTM to POTX in Node.js. Use a Node.js library API to convert PPTM files to POTX files.

Source: https://products.aspose.com/slides/nodejs-java/conversion/pptm-to-potx/
Updated: 2026-07-14



## Convert PPTM to POTX in Node.js

[**Aspose.Slides for Node.js via Java**](/slides/nodejs-java/) lets developers create, read, edit, and convert presentation files in Node.js applications. You can load a `PPTM` file with the `Presentation` class and export it to a `POTX` file by using the presentation API.

## Convert PPTM to POTX using Node.js

To convert `PPTM` to `POTX`, create a `Presentation` from the source file and export it to a `POTX` file.

### Node.js code to convert PPTM to POTX

```javascript
const presentation = new aspose.slides.Presentation("sourceFile.pptm");
try {
    presentation.save("output.potx", aspose.slides.SaveFormat.Potx);
}
finally {
    presentation.dispose();
}
```

## How to convert PPTM to POTX using Aspose.Slides for Node.js via Java API

To convert PPTM to POTX using Aspose.Slides for Node.js via Java, import the package, load the source file, and export it in the required format.

Install [**Aspose.Slides for Node.js via Java**](/slides/nodejs-java/).

Import the `aspose.slides.via.java` package in your Node.js project.

Load the source `PPTM` file with the `Presentation` class.

Call the `save` method with the output file path and `SaveFormat.Potx`.

## Convert PPTM to Other Supported Formats
