# Convert PPT to PNG in Node.js

> Convert PPT to PNG in Node.js. Use a Node.js library API to convert PPT files to PNG images.

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



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

## Convert PPT to PNG using Node.js

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

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

```javascript
const presentation = new aspose.slides.Presentation("sourceFile.ppt");
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 PPT to PNG using Aspose.Slides for Node.js via Java API

To convert PPT 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 `PPT` file with the `Presentation` class.

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

## Convert PPT to Other Supported Formats

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