TL;DR: Need to generate PowerPoint reports directly from application data? The Syncfusion JavaScript PowerPoint Library (Preview) lets you create, open, edit, and save PPTX presentations in browser and Node.js applications. Build slides with text, images, tables, and charts without requiring Microsoft PowerPoint.
What if you could create and manage PowerPoint presentations directly from your JavaScript application?
From generating business reports and customer presentations to updating existing slide decks, automating presentation workflows can make application development more flexible and efficient.
The Syncfusion® JavaScript PowerPoint Library (Preview), introduced in Essential Studio® 2026 Volume 3, brings these capabilities to JavaScript and TypeScript developers. It provides APIs to create, open, edit, and save PowerPoint (.pptx) presentations programmatically.
Whether you’re working in a browser or a Node.js environment, you can handle presentation files directly from your application without requiring Microsoft PowerPoint to be installed.
In this blog, we’ll explore the library’s key features and learn how to create, save, and update PowerPoint presentations using JavaScript.
The JavaScript PowerPoint Library provides APIs for working with presentation content and structure. Here are its key capabilities.
Presentation and slide management: Create presentations, open existing PPTX files, add or remove slides, and organize presentation content.
Layouts and master slides: Work with slide layouts and master slides to maintain consistent presentation structure, positioning, backgrounds, and branding.
Text and formatting: Add and edit text, paragraphs, bullets, numbering, hyperlinks, and text formatting.
Shapes and placeholders: Insert and customize shapes, text boxes, and placeholders to organize slide content.

Tables and charts: Create and modify tables and charts to present structured information and visualize business data.

Images: Insert, replace, position, and remove images in slides.

Sections and speaker notes: Organize slides into sections and create or edit speaker notes.
The library currently supports the .pptx format. It can be used in JavaScript, TypeScript, Node.js, Angular, React, and Vue applications.
For a complete list of supported features, refer to the JavaScript PowerPoint Library documentation.
Let’s create a simple PowerPoint presentation with a title slide using JavaScript.
Before getting started, make sure you have:
You can check the installed versions using:
node --version
npm --version
Install the Syncfusion JavaScript PowerPoint Library from npm:
npm install @syncfusion/ej2-pptx --save
Import Presentation and SlideLayoutType from the package. Use Presentation.create() to create a new presentation and add a blank slide.
import { Presentation, SlideLayoutType } from '@syncfusion/ej2-pptx';
// Create a new PowerPoint presentation.
const pptxDoc = Presentation.create();
// Add a blank slide.
const firstSlide = pptxDoc.slides.add({
layout: SlideLayoutType.Blank
});
// Add a text box to the slide.
const textShape = firstSlide.shapes.addTextBox({
bounds: {
x: 100,
y: 75,
width: 756,
height: 200
}
});
// Add a paragraph to the text box.
const paragraph = textShape.textBody.addParagraph();
// Add text to the paragraph.
const textPart = paragraph.addTextPart('');
textPart.text = 'Introducing the Syncfusion JavaScript PowerPoint Library';
The code creates a presentation, adds a blank slide, and inserts a text box containing the presentation title.
You can extend this example by adding more slides and supported elements, such as images, shapes, tables, and charts.
Once the presentation is ready, save it as a PPTX file:
// Save and download the presentation.
await pptxDoc.save('Output.pptx');
In a browser environment, this triggers a download of the generated PowerPoint file. Users can open the downloaded presentation in Microsoft PowerPoint or another compatible application.

You can also generate PowerPoint files on the server using Node.js. This is useful when a backend application needs to create reports automatically, generate customer-specific presentations, or provide downloadable files through an API.
The saving process differs slightly from browser-based development. In Node.js, save() returns the presentation data as a Uint8Array. You can write these bytes to the file system using Node.js file-system APIs.
For example:
const express = require('express');
const { Presentation, HorizontalAlignmentType } = require('@syncfusion/ej2-pptx');
const app = express();
const PORT = 3000;
// Serve frontend files from the public directory
app.use(express.static('public'));
// PowerPoint generation API
app.get('/generate-powerpoint', async (req, res) => {
// Creates a Presentation instance
const pptxDoc = Presentation.create();
// Adds a slide to the PowerPoint presentation
const slide = pptxDoc.slides.add();
// Adds a textbox for the title
const titleShape = slide.shapes.addTextBox({
bounds: {
x: 55,
y: 25,
width: 850,
height: 72
}
});
// Adds a paragraph to the textbox
const paragraph = titleShape.textBody.addParagraph();
paragraph.horizontalAlignment = HorizontalAlignmentType.Center;
// Adds text to the paragraph
const textPart = paragraph.addTextPart('Hello World!!!');
textPart.font.fontName = 'Calibri';
textPart.font.bold = true;
textPart.font.fontSize = 36;
// Save the PowerPoint presentation as a Uint8Array of bytes
const pptxBytes = await pptxDoc.save();
// Send the PowerPoint presentation to the browser as a downloadable attachment
res.setHeader('Content-Type', 'application/vnd.openxmlformats-officedocument.presentationml.presentation');
res.setHeader('Content-Disposition', 'attachment; filename=WeeklySalesReport.pptx');
res.send(Buffer.from(pptxBytes));
});
// Start the server
app.listen(PORT, () => {
console.log(`Server running at http://localhost:${PORT}`);
});
Here, the application creates a presentation, adds a title slide, and saves the generated PPTX data as WeeklySalesReport.pptx.
You can use the same approach in a backend reporting service and return the generated file to a browser or another application.
For more details, see Getting Started with JavaScript PowerPoint in Node.js.
Creating presentations from scratch is only one part of presentation automation. Business applications often use existing PowerPoint templates to maintain consistent branding and formatting.
The JavaScript PowerPoint Library supports opening existing PPTX files, modifying their content, and saving the changes.
The Presentation.open() method accepts presentation data as a Base64-encoded string or a Uint8Array.
For example, the following Node.js code opens an existing presentation, adds a slide, and saves the updated file.
const fs = require('fs');
const { Presentation, SlideLayoutType } = require('@syncfusion/ej2-pptx');
async function updatePresentation() {
// Read the existing PPTX file.
const presentationData = new Uint8Array(
fs.readFileSync('SalesTemplate.pptx')
);
// Open the existing presentation.
const pptxDoc = await Presentation.open(presentationData);
// Add a new slide.
const newSlide = pptxDoc.slides.add({
layout: SlideLayoutType.Blank
});
// Add content to the new slide.
const textShape = newSlide.shapes.addTextBox({
bounds: {
x: 100,
y: 75,
width: 756,
height: 200
}
});
const paragraph = textShape.textBody.addParagraph();
const textPart = paragraph.addTextPart('');
textPart.text = 'Updated Sales Performance';
// Save the modified presentation.
const updatedData = await pptxDoc.save();
fs.writeFileSync('UpdatedSalesReport.pptx', updatedData);
}
updatePresentation();
In this example, the application reads an existing PowerPoint file, opens it, adds a new slide with a title, and saves the updated presentation.
You can extend this workflow to update supported presentation elements, including text, shapes, tables, images, and charts.
This is particularly useful when applications need to generate reports from predefined templates instead of creating every presentation from scratch.
For more information, see Loading and Saving PowerPoint Presentations.
The current release provides the core capabilities needed to create, open, edit, and save PowerPoint presentations. The product roadmap also identifies additional enhancements planned for future releases.
These planned improvements are grouped into the following areas.
Planned presentation-management enhancements include:
Future content-related improvements include:
The roadmap includes comments support to help users review and collaborate on presentation content.
Planned security enhancements include:
These enhancements are intended to expand the library’s presentation management, conversion, collaboration, and security capabilities. They represent planned roadmap items and should not be considered available in the current release.
For the latest feature availability, refer to the official release notes.
Generating PowerPoint presentations doesn’t have to involve manually creating slides or relying on desktop Office automation. With the Syncfusion JavaScript PowerPoint Library (Preview), developers can create presentations from application data, work with existing PPTX files, and generate reports in browser and Node.js applications.
From adding slides and text to working with tables, charts, images, layouts, and master slides, the library provides a foundation for building presentation-generation workflows with JavaScript.
The planned roadmap enhancements will extend these capabilities with features such as slide merging, PDF conversion, animations, collaboration, and document protection.
Ready to explore presentation automation in JavaScript? Check out the JavaScript PowerPoint Library documentation and try it in your application.
You can also explore the Syncfusion Document SDKs and download a free 30-day trial to get started.
Yes. The library supports browser and Node.js environments. You can generate presentations in the browser and download them directly or create presentations on the server and save the returned presentation data using Node.js file-system APIs.
Yes. Use Presentation.open() to load an existing PPTX file as a Base64-encoded string or Uint8Array. You can then modify supported presentation elements and save the updated file.
Yes. The library supports opening password-protected PPTX presentations when valid credentials are provided.
No. The JavaScript PowerPoint Library processes PPTX files programmatically without requiring Microsoft PowerPoint or Microsoft Office Interop to be installed.
Yes. The library can be integrated into JavaScript and TypeScript applications, including React, Angular, and Vue projects. It also supports Node.js applications.
It has been six months since I blogged about SqlServer.Rules 5.0.0. Most of the work since then has been the less visible kind: fixing false positives that users reported, and bringing live analysis to VS Code.
This post is about the latest additions, and I have tried to put something in it for both ends of the scale:
If you are new here: T-SQL Analyzer is my collection of more than 140 open source static code analysis rules for T-SQL, built on the DacFx API. The same rules run live in Visual Studio, SSMS and VS Code, during the build of a SQL Database project, and from the command line.
Until now, the first step to see what the rules do was to install something. An extension, a NuGet package or a .NET tool - none of them hard to install, but still a step you had to take before you knew if it was worth it.
So I made a small demo web app:

Paste a T-SQL script, press Analyze, and you get a list of findings with rule id, line, column and a description. Each rule id links to the documentation page for that rule, with an explanation and an example.
Your script is parsed and analyzed, nothing else. It is never executed, there is no database behind the site, and nothing is stored.
As an example, I pasted this table definition:
CREATE TABLE dbo.Customer
(
CustomerId INT IDENTITY(1, 1) CONSTRAINT PK_Customer PRIMARY KEY,
Name NVARCHAR(100) NOT NULL,
Email NVARCHAR(200),
DateOfBirth DATE NULL
);
GO
ADD SENSITIVITY CLASSIFICATION TO dbo.Customer.DateOfBirth
WITH (LABEL = 'Confidential', INFORMATION_TYPE = 'Date Of Birth');
And got this back:
| Rule | Line | Col | Description |
|---|---|---|---|
| SRD0001 | 1 | 1 | A unique constraint can enforce the table's natural key and prevent duplicate entities. |
| SRD0098 | 5 | 5 | Specify NULL or NOT NULL explicitly for table columns. |
| SRD0097 | 6 | 5 | Classified sensitive columns should be masked or encrypted. |
The last two are the new rules, more about them below.
The app is a single HTML page and one ASP.NET Core minimal API endpoint on .NET 10. It uses the same analyzer library as the command line tool and the editor extensions, so what you see on the site is what you get in your editor. The script is analyzed with all rules enabled, against the Sql170 version.
It runs as a Linux container on Azure Container Apps, on the consumption plan with scale to zero. That keeps my bill low, but it also means that the first request after a quiet period is slow, so give it some seconds.
To keep it running for everybody, I have added a few limits: scripts can be up to 8 KB, you get 10 requests per minute, and an analysis is stopped after 30 seconds. For anything larger, install one of the tools - the readme has a table that takes you from where you work to the right install link.
The source is in the tools/SqlAnalyzerWeb folder, including a Dockerfile and notes on how to host it yourself. One detail that may save you some time if you want to run DacFx in a Linux container: it needs ICU, so use the Debian based ASP.NET Core image and leave InvariantGlobalization off. Alpine and the chiseled images fail with a CultureNotFoundException.
This rule comes out of an issue I created to go through the SQL Code Smells material from the late Phil Factor, looking for smells that my rules did not cover yet. Columns created without NULL or NOT NULL was one that was both missing and possible to detect from the script alone.
CREATE TABLE dbo.Example
(
Explicit INT NOT NULL,
Unspecified INT
);
Unspecified is reported, Explicit is not.
Why care? When you leave it out, the nullability of the column depends on the ANSI_NULL_DFLT settings in effect when the table is created. The same script can give you two different tables, and you do not find out until an insert fails, or until a NULL shows up where you did not expect one.
The rule stays quiet where nullability is not really up to you: computed columns, identity columns, sparse columns and primary key columns are not reported.
Docs: SRD0098
The idea for this rule comes from a DacFx feature request, microsoft/DacFx#880, asking for a BlockOnUnprotectedSensitiveColumns option in SqlPackage - the data protection counterpart of BlockOnPossibleDataLoss. That is a deployment feature and not something I can add, but a good part of the check can be done much earlier, when you build the project.
The rule reports columns that have a sensitivity classification, but are neither masked with dynamic data masking nor encrypted with Always Encrypted:
CREATE TABLE dbo.Customer
(
CustomerId INT NOT NULL CONSTRAINT PK_Customer PRIMARY KEY,
DateOfBirth DATE NULL,
Email NVARCHAR(200) MASKED WITH (FUNCTION = 'email()') NULL
);
GO
ADD SENSITIVITY CLASSIFICATION TO dbo.Customer.DateOfBirth
WITH (LABEL = 'Confidential', INFORMATION_TYPE = 'Date Of Birth');
GO
ADD SENSITIVITY CLASSIFICATION TO dbo.Customer.Email
WITH (LABEL = 'Confidential', INFORMATION_TYPE = 'Contact Info');
DateOfBirth is reported until you mask or encrypt it. Email is fine, as it is masked.
Columns classified with the Public label, or with an explicit RANK = NONE, are not reported.
A word of caution: this rule is a guardrail, it does not prove that you are compliant with anything. Dynamic data masking counts as protection here, but it only masks query results. The data is still stored unencrypted, and it is not protected in exports, replicas or other copies of the database.
Docs: SRD0097
Most rules have nothing to configure, you turn them on or off. A few need to know something about your conventions, and for those I use .editorconfig, in a [*.sql] section.
SRD0097 has an obvious weakness: it only looks at columns that somebody has classified. A SocialSecurityNumber column that nobody got around to classifying passes without a word.
To cover that, you can point the rule to an Information Protection policy file. This is the JSON format (version 2.0) that SSMS uses for Data Discovery & Classification, with name patterns for each information type. You can export one from SSMS or start from this sample.
[*.sql]
sqlserver_rules.srd0097.policy_file = config/sensitivity-policy.json
sqlserver_rules.srd0097.exceptions_file = config/sensitivity-exceptions.json
Relative paths are resolved from the folder of the .editorconfig file. With a policy in place, columns that match a pattern are reported with a message like this:
Column 'Email' is potentially sensitive (policy information type 'Contact Info', pattern '%email%') but is not masked or Always Encrypted.
This is opt-in. If you do not select a policy file, the rule behaves as described above.
The patterns work like SQL LIKE, and they match more than you think. %dob% finds your DOB column, but it also finds SavedObjectID. You can tighten the patterns in the policy file, or you can list the columns you have looked at in the exceptions file:
{
"exceptions": [
{
"column": "[dbo].[Address].[AddressId]",
"reason": "Surrogate key, not personal data",
"approvedBy": "Data governance team",
"expires": "2027-12-31"
}
]
}
The column name must be exact and a reason is required. approvedBy and expires are optional. I like the expiry date, it forces somebody to look at the exception again. Exceptions only apply to findings from the policy, you can not use them to hide a column that has an actual classification.
If you want unprotected columns to break the build, promote the rule to an error in your project file:
<SqlCodeAnalysisRules>+!SqlServer.Rules.SRD0097</SqlCodeAnalysisRules>
SRN0007 checks the names of primary keys, foreign keys, indexes, check constraints and default constraints. Out of the box it expects names like PK_Customer and DF_Customer_Created. That is one convention out of many, and "your rule does not match our naming standard" has been a fair complaint.
The patterns are regular expressions, and you can replace each of them. These are the defaults:
[*.sql]
sqlserver_rules.srn0007.pk_regex = ^PK_{{tableName}}$
sqlserver_rules.srn0007.fk_regex = ^FK_{{tableName}}_{{foreignTableName}}.*
sqlserver_rules.srn0007.ix_regex = ^IX_{{tableName}}_.*
sqlserver_rules.srn0007.ux_regex = ^UX_{{tableName}}_.*
sqlserver_rules.srn0007.ck_regex = ^CK_{{tableName}}_.*
sqlserver_rules.srn0007.df_regex = ^DF_{{tableName}}_{{columnName}}$
The tokens you can use are {{tableName}}, {{schemaName}}, {{foreignTableName}}, {{foreignSchemaName}} and {{columnName}}. They are replaced with the actual names before the name is matched, and the match ignores case.
Say your standard is to include the schema name in primary key names:
[*.sql]
sqlserver_rules.srn0007.pk_regex = ^PK_{{schemaName}}_{{tableName}}$
Then this table:
CREATE TABLE dbo.Customer
(
CustomerId INT IDENTITY(1, 1) NOT NULL,
Name NVARCHAR(100) NOT NULL,
Created DATETIME2 NOT NULL CONSTRAINT DF_Customer_Created DEFAULT (SYSUTCDATETIME()),
CONSTRAINT PK_Customer PRIMARY KEY CLUSTERED (CustomerId)
);
gives you:
Customer.sql(6,5,6,5): SqlServer.Rules.SRN0007 : Primary Key 'PK_Customer' does not follow the company naming standard. Please match regex ^PK_dbo_Customer$.
The message shows the pattern after the tokens have been replaced, so you can see exactly what the name is compared with. The default constraint is not reported, as it still matches the default pattern.
By default, the rules look for .editorconfig starting from the folder of each .sql file, the same way your editor does. That works well for SQL projects and loose scripts.
It does not work when there is no file on disk to start from: a .dacpac, a live database, a .zip file or text passed directly to the tool. For those, you can now tell the command line tool which file to use:
tsqlanalyze -i C:\scripts\database.dacpac --editorconfig C:\config\.editorconfig
The Visual Studio and SSMS extensions have a matching EditorConfig path setting in Tools/Options.
When you select a file this way, only its [*.sql] sections are used, and it is not combined with any .editorconfig files found next to your scripts. A value of unset brings a setting back to its default.
The new rules are in version 5.1.12 of the rules package. For SQL Database projects, update the package reference:
<PackageReference Include="ErikEJ.DacFX.SqlServer.Rules" Version="5.1.12">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Update the command line tool with:
dotnet tool update --global ErikEJ.DacFX.TSQLAnalyzer.Cli
The links to the extensions for Visual Studio, SSMS and VS Code are in the readme, and all rules are listed with explanations and examples in the rule catalogue.
The release notes also list a good number of false positive fixes, for example for EXISTS against CTEs (SRP0024), UPDATE with a JOIN (SRD0018) and COUNT comparisons (SRP0023). A special thank you to @chrstphe and @marcocarzaniga-it for their first contributions to the project.
If a rule complains about something it should not, or stays quiet when it should not, please open an issue. A short script that reproduces the problem is the best help I can get - and now you can check it on the demo site first.
If you find the rules useful, you can also sponsor me on GitHub.