All Projects → gitbrent → Pptxgenjs

gitbrent / Pptxgenjs

Licence: mit
Create JavaScript PowerPoint Presentations

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Pptxgenjs

ppt-ndi
A PowerPoint plugin for the NewTek NDI integration
Stars: ✭ 151 (-84.34%)
Mutual labels:  powerpoint
Docs2Pdf
Bulk convert word/powerpoint/excel file to pdf.
Stars: ✭ 27 (-97.2%)
Mutual labels:  powerpoint
Pptx2html
Convert pptx file to HTML by using pure javascript
Stars: ✭ 318 (-67.01%)
Mutual labels:  powerpoint
OfficeExtractor
Extracts embedded OLE objects from Word, Excel, PowerPoint, Open Office and RTF files without needing the original programs
Stars: ✭ 67 (-93.05%)
Mutual labels:  powerpoint
powerpoint
Render PowerPoint presentations from R Markdown documents
Stars: ✭ 73 (-92.43%)
Mutual labels:  powerpoint
craXcel-cli
Command line application to unlock Microsoft Office password protected files.
Stars: ✭ 44 (-95.44%)
Mutual labels:  powerpoint
reveal-template
Simple reveal.js template with mathjax support and no node or npm dependencies, just a good old Makefile
Stars: ✭ 20 (-97.93%)
Mutual labels:  powerpoint
Beamerstyleslides
🌈Beamer风格的幻灯片模板集。包含了PowerPoint和Keynote两套格式。
Stars: ✭ 562 (-41.7%)
Mutual labels:  powerpoint
Rage
Rage allows you to execute any file in a Microsoft Office document.
Stars: ✭ 68 (-92.95%)
Mutual labels:  powerpoint
Huxtable
An R package to create styled tables in multiple output formats, with a friendly, modern interface.
Stars: ✭ 277 (-71.27%)
Mutual labels:  powerpoint
RemixIcon-Slides
Remix Icon for PowerPoint and Keynote
Stars: ✭ 50 (-94.81%)
Mutual labels:  powerpoint
PowerPointAudio-Extractor
Python script which extracts and joins audio files from powerpoints
Stars: ✭ 12 (-98.76%)
Mutual labels:  powerpoint
rgpipe
lesspipe for ripgrep for common new filetypes using few dependencies
Stars: ✭ 21 (-97.82%)
Mutual labels:  powerpoint
construct
A reactive graphical symbolic environment for PicoLisp
Stars: ✭ 29 (-96.99%)
Mutual labels:  powerpoint
Officer
👮 officer: office documents from R
Stars: ✭ 405 (-57.99%)
Mutual labels:  powerpoint
jupyterlab powerpoint
Creating PowerPoints from jupyter notebooks and vice versa
Stars: ✭ 19 (-98.03%)
Mutual labels:  powerpoint
ShapeCrawler
A .NET library for manipulating PowerPoint presentations.
Stars: ✭ 88 (-90.87%)
Mutual labels:  powerpoint
Docxtemplater Link Module
⚓️ Hyperlink module for docxtemplater
Stars: ✭ 12 (-98.76%)
Mutual labels:  powerpoint
React Presents
React slideshow framework
Stars: ✭ 454 (-52.9%)
Mutual labels:  powerpoint
Unioffice
Pure go library for creating and processing Office Word (.docx), Excel (.xlsx) and Powerpoint (.pptx) documents
Stars: ✭ 3,111 (+222.72%)
Mutual labels:  powerpoint

PptxGenJS

Create JavaScript PowerPoint Presentations

PptxGenJS Sample Slides


Known Vulnerabilities npm downloads jsdelivr downloads typescripts definitions

Table of Contents

Introduction

This library creates Open Office XML (OOXML) Presentations which are compatible with Microsoft PowerPoint, Apple Keynote, and other applications.

Features

Extensive Support

  • Generate presentations on every modern desktop & mobile web browser
  • IE11 is supported via bundle polyfill

Comprehensive Objects

  • Create any object type: Charts, Images, Links, Media, Shapes, Tables, Text
  • SVG images and YouTube videos are supported when viewed in PowerPoint online/2019+ desktop application

Modern Architecture

  • Supports client web browsers, NodeJS, and React/Angular/Electron
  • Export methods return promises
  • Client browsers have only a single dependency: JSZip
  • Easy Angular/React integration (available via npm, cjs or es files)
  • Typescript definitions included

HTML to PowerPoint

  • Includes powerful HTML-to-PowerPoint feature to transform HTML tables into presentations with a single line of code

Live Demo

Use the online demo to create a simple presentation to see how easy it is to use pptxgenjs, or check out the complete demo which showcases every available feature.

Installation

CDN

jsDelivr Home

Bundle: Modern Browsers and IE11

<script src="https://cdn.jsdelivr.net/gh/gitbrent/[email protected]/dist/pptxgen.bundle.js"></script>

Min files: Modern Browsers

<script src="https://cdn.jsdelivr.net/gh/gitbrent/[email protected]/libs/jszip.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/gitbrent/[email protected]/dist/pptxgen.min.js"></script>

Download

GitHub Latest Release

Bundle: Modern Browsers and IE11

<script src="PptxGenJS/dist/pptxgen.bundle.js"></script>

Min files: Modern Browsers

<script src="PptxGenJS/libs/jszip.min.js"></script>
<script src="PptxGenJS/dist/pptxgen.min.js"></script>

Npm

PptxGenJS NPM Home

npm install pptxgenjs --save

Yarn

yarn add pptxgenjs

Additional Builds

  • CommonJS: dist/pptxgen.cjs.js
  • ES Module: dist/pptxgen.es.js

Documentation

Quick Start Guide

PptxGenJS PowerPoint presentations are created via JavaScript by following 4 basic steps:

Angular/React, ES6, TypeScript

import pptxgen from "pptxgenjs";

// 1. Create a new Presentation
let pres = new pptxgen();

// 2. Add a Slide
let slide = pres.addSlide();

// 3. Add one or more objects (Tables, Shapes, Images, Text and Media) to the Slide
let textboxText = "Hello World from PptxGenJS!";
let textboxOpts = { x: 1, y: 1, color: "363636" };
slide.addText(textboxText, textboxOpts);

// 4. Save the Presentation
pres.writeFile();

Script/Web Browser

// 1. Create a new Presentation
let pres = new PptxGenJS();

// 2. Add a Slide
let slide = pres.addSlide();

// 3. Add one or more objects (Tables, Shapes, Images, Text and Media) to the Slide
let textboxText = "Hello World from PptxGenJS!";
let textboxOpts = { x: 1, y: 1, color: "363636" };
slide.addText(textboxText, textboxOpts);

// 4. Save the Presentation
pres.writeFile();

That's really all there is to it!


Library API

Full documentation and code examples are available


HTML-to-PowerPoint Feature

Easily convert HTML tables to PowerPoint presentations in a single call.

let pptx = new PptxGenJS();
pptx.tableToSlides("tableElementId");
pptx.writeFile();

Learn more:


Library Ports

React: react-pptx - thanks to Joonas!


Issues / Suggestions

Please file issues or suggestions on the issues page on github, or even better, submit a pull request. Feedback is always welcome!

When reporting issues, please include a code snippet or a link demonstrating the problem. Here is a small jsFiddle that is already configured and uses the latest PptxGenJS code.


Need Help?

Sometimes implementing a new library can be a difficult task and the slightest mistake will keep something from working. We've all been there!

If you are having issues getting a presentation to generate, check out the code in the demos directory. There are demos for both client browsers, node and react that contain working examples of every available library feature.


Contributors

Thank you to everyone for the issues, contributions and suggestions! ❤️

Special Thanks:

PowerPoint shape definitions and some XML code via Officegen Project


License

Copyright © 2015-2020 Brent Ely

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].