# Convert POT to PNG in Node.js

> Convert POT to PNG in Node.js. Use the Node.js API to convert POT files to PNG images.

Source: https://products.aspose.com/slides/nodejs-java/conversion/pot-to-png/
Updated: 2026-07-13



## Convert POT to PNG 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 `POT` file with the `Presentation` class and export its slides to `PNG` images by using the presentation API.

## Convert POT to PNG using Node.js

To convert `POT` to `PNG`, create a `Presentation` from the source file and export each slide to a `PNG` image.

### Node.js code to convert POT to PNG

```javascript
const presentation = new aspose.slides.Presentation("sourceFile.pot");
try {
    const slideCount = presentation.getSlides().size();
    for (let slideIndex = 0; slideIndex < slideCount; slideIndex++) {
        const slide = presentation.getSlides().get_Item(slideIndex);
        const slideImage = slide.getImage(2, 2);
        try {
            const filePath = "slide_" + slide.getSlideNumber() + ".png";
            slideImage.save(filePath, aspose.slides.ImageFormat.Png);
        }
        finally {
            slideImage.dispose();
        }
    }
}
finally {
    presentation.dispose();
}
```

## How to convert POT to PNG using Aspose.Slides for Node.js via Java API

To convert POT to PNG using Aspose.Slides for Node.js via Java, import the package, load the source file with the Presentation class, and export slides as images.

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 `POT` file with the `Presentation` class.

Render each slide with `getImage` and save it with `ImageFormat.Png`.

## Convert POT to Other Supported Formats

- [POT TO PPTX](/slides/nodejs-java/conversion/pot-to-pptx/)
- [POT TO PPT](/slides/nodejs-java/conversion/pot-to-ppt/)
- [POT TO PDF](/slides/nodejs-java/conversion/pot-to-pdf/)
- [POT TO HTML](/slides/nodejs-java/conversion/pot-to-html/)
- [POT TO BMP](/slides/nodejs-java/conversion/pot-to-bmp/)
- [POT TO JPG](/slides/nodejs-java/conversion/pot-to-jpg/)
- [POT TO FODP](/slides/nodejs-java/conversion/pot-to-fodp/)
- [POT TO GIF](/slides/nodejs-java/conversion/pot-to-gif/)
- [POT TO ODP](/slides/nodejs-java/conversion/pot-to-odp/)
- [POT TO OTP](/slides/nodejs-java/conversion/pot-to-otp/)
- [POT TO POTM](/slides/nodejs-java/conversion/pot-to-potm/)
- [POT TO POTX](/slides/nodejs-java/conversion/pot-to-potx/)
- [POT TO PPS](/slides/nodejs-java/conversion/pot-to-pps/)
- [POT TO PPSM](/slides/nodejs-java/conversion/pot-to-ppsm/)
- [POT TO PPSX](/slides/nodejs-java/conversion/pot-to-ppsx/)
- [POT TO PPTM](/slides/nodejs-java/conversion/pot-to-pptm/)
- [POT TO SVG](/slides/nodejs-java/conversion/pot-to-svg/)
- [POT TO TIFF](/slides/nodejs-java/conversion/pot-to-tiff/)
