JavaScript API to Generate PPTX Presentation

Open Source JavaScript PowerPoint Library to Create, Edit & Convert PPTX Files, Add Charts, Slides & Images.

 

JS-PPTX is an Open Source pure JavaScript library that provides functionality for reading, writing and editing PowerPoint PPTX presentations inside their own JavaScript applications. Developers require Node.js or a web browser for running it smoothly. The API is very user-friendly and gives developers the power to create a presentation with just a couple of JavaScript commands.

The API allows reading, writing and editing presentations on all popular web browsers such as Chrome, Firefox, and IE. It includes support for several important features such as read an existing presentation, add slide, shape, and charts,  insert tables as well as Text to slides and much more.

Getting Started with JS-PPTX

You can download it directly from GitHub.

Install via npm command

 npm install protobi/js-pptx 

You can also install it via browser but it is not recommended

Install via Browser

 <script src="/js-pptx.js"></script> 

Generate New PowerPoint PPTX Presentation using JavaScript API

JS-PPTX library enables software professional to create a new PowerPoint PPTX presentation. You can provide the location and name for the new file.  After the presentation creation developers can create a new worksheet with the desired number of rows and columns. The API also provides the ability to add a new slide, charts, tables, shapes, images, etc.

Add Slides & images to a PPTX Presentation

The open source API fully supports slides and images addition to PowerPoint PPTX presentations. Software programmers can easily add slides to an existing presentation at the required location. Same like slides it is also possible to add images to an existing presentation to display data in a user-friendly manner and a better way.

Adding Charts to a PowerPoint Presentation

The JS-PPTX API gives software developers the ability to add a chart to a PowerPoint PPTX Presentation inside their own JavaScript applications. First, you need to generate a temporary excel file for storing the chart's data. After that, you can write the header using the series name and can write the category column in the first column.  Now you can write the data in the desired columns and rows to complete the task.