{"id":13406399,"url":"https://github.com/gitbrent/PptxGenJS","last_synced_at":"2025-03-14T10:33:13.425Z","repository":{"id":6219177,"uuid":"52322425","full_name":"gitbrent/PptxGenJS","owner":"gitbrent","description":"Create PowerPoint presentations with a powerful, concise JavaScript API.","archived":false,"fork":false,"pushed_at":"2024-10-27T21:13:43.000Z","size":107163,"stargazers_count":2989,"open_issues_count":236,"forks_count":643,"subscribers_count":60,"default_branch":"master","last_synced_at":"2024-10-30T05:36:32.018Z","etag":null,"topics":["angular-powerpoint","es6-powerpoint","html-to-powerpoint","javascript","javascript-powerpoint","node-powerpoint","powerpoint","powerpoint-charts","powerpoint-generation","powerpoint-library","powerpoint-presentations","pptx","react-powerpoint","typescript-powerpoint"],"latest_commit_sha":null,"homepage":"https://gitbrent.github.io/PptxGenJS/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitbrent.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-23T02:15:29.000Z","updated_at":"2024-10-30T01:00:27.000Z","dependencies_parsed_at":"2023-02-12T19:45:17.016Z","dependency_job_id":"ce7b3d84-7465-4830-9469-2a7329a51776","html_url":"https://github.com/gitbrent/PptxGenJS","commit_stats":{"total_commits":3012,"total_committers":69,"mean_commits":43.65217391304348,"dds":0.6457503320053121,"last_synced_commit":"035cf6b26239e2ea1f27eefbcdb8134e504eb4f4"},"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitbrent%2FPptxGenJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitbrent%2FPptxGenJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitbrent%2FPptxGenJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitbrent%2FPptxGenJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitbrent","download_url":"https://codeload.github.com/gitbrent/PptxGenJS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237688731,"owners_count":19350834,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular-powerpoint","es6-powerpoint","html-to-powerpoint","javascript","javascript-powerpoint","node-powerpoint","powerpoint","powerpoint-charts","powerpoint-generation","powerpoint-library","powerpoint-presentations","pptx","react-powerpoint","typescript-powerpoint"],"created_at":"2024-07-30T19:02:29.233Z","updated_at":"2025-03-14T10:33:13.414Z","avatar_url":"https://github.com/gitbrent.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ePptxGenJS\u003c/h1\u003e\n\u003ch5 align=\"center\"\u003e\n  Create JavaScript PowerPoint Presentations\n\u003c/h5\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/gitbrent/PptxGenJS/\"\u003e\n    \u003cimg alt=\"PptxGenJS Sample Slides\" title=\"PptxGenJS Sample Slides\" src=\"https://raw.githubusercontent.com/gitbrent/PptxGenJS/gh-pages/img/readme_banner.png\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\n[![Known Vulnerabilities](https://snyk.io/test/npm/pptxgenjs/badge.svg)](https://snyk.io/test/npm/pptxgenjs) [![npm downloads](https://img.shields.io/npm/dm/pptxgenjs.svg)](https://www.npmjs.com/package/pptxgenjs) [![jsdelivr downloads](https://data.jsdelivr.com/v1/package/gh/gitbrent/pptxgenjs/badge)](https://www.jsdelivr.com/package/gh/gitbrent/pptxgenjs) [![typescripts definitions](https://img.shields.io/npm/types/pptxgenjs)](https://img.shields.io/npm/types/pptxgenjs)\n\n# Table of Contents\n\n- [Table of Contents](#table-of-contents)\n- [Introduction](#introduction)\n- [Features](#features)\n\t- [Works Everywhere](#works-everywhere)\n\t- [Full Featured](#full-featured)\n\t- [Simple and Powerful](#simple-and-powerful)\n\t- [Export Your Way](#export-your-way)\n\t- [HTML to PowerPoint](#html-to-powerpoint)\n- [Live Demos](#live-demos)\n- [Installation](#installation)\n\t- [Npm](#npm)\n\t- [Yarn](#yarn)\n\t- [CDN](#cdn)\n\t- [Download](#download)\n\t- [Additional Builds](#additional-builds)\n- [Documentation](#documentation)\n\t- [Quick Start Guide](#quick-start-guide)\n\t\t- [Angular/React, ES6, TypeScript](#angularreact-es6-typescript)\n\t\t- [Script/Web Browser](#scriptweb-browser)\n\t- [Library API](#library-api)\n\t- [HTML-to-PowerPoint Feature](#html-to-powerpoint-feature)\n- [Library Ports](#library-ports)\n- [Issues / Suggestions](#issues--suggestions)\n- [Need Help?](#need-help)\n- [Contributors](#contributors)\n- [Sponsor Us](#sponsor-us)\n- [License](#license)\n\n# Introduction\n\nThis library creates Open Office XML (OOXML) Presentations which are compatible with Microsoft PowerPoint, Apple Keynote, and other applications.\n\n# Features\n\n## Works Everywhere\n\n- Every modern desktop and mobile browser is supported\n- Integrates with Node, Angular, React, and Electron\n- Compatible with PowerPoint, Keynote, and more\n\n## Full Featured\n\n- All major object types are available (charts, shapes, tables, etc.)\n- Master Slides for academic/corporate branding\n- SVG images, animated gifs, YouTube videos, RTL text, and Asian fonts\n\n## Simple and Powerful\n\n- The absolute easiest PowerPoint library to use\n- Learn as you code will full typescript definitions included\n- Tons of demo code comes included (over 75 slides of features)\n\n## Export Your Way\n\n- Exports files direct to client browsers with proper MIME-type\n- Other export formats available: base64, blob, stream, etc.\n- Presentation compression options and more\n\n## HTML to PowerPoint\n\n- Includes powerful [HTML-to-PowerPoint](#html-to-powerpoint-feature) feature to transform HTML tables into presentations with a single line of code\n\n# Live Demos\n\nVisit the demos page 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.\n\n- [PptxGenJS Demos](https://gitbrent.github.io/PptxGenJS/demos/)\n\n# Installation\n\n## Npm\n\n[PptxGenJS NPM Home](https://www.npmjs.com/package/pptxgenjs)\n\n```bash\nnpm install pptxgenjs --save\n```\n\n## Yarn\n\n```bash\nyarn add pptxgenjs\n```\n\n## CDN\n\n[jsDelivr Home](https://www.jsdelivr.com/package/gh/gitbrent/pptxgenjs)\n\nBundle: Modern Browsers and IE11\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/gitbrent/pptxgenjs@3.12.0/dist/pptxgen.bundle.js\"\u003e\u003c/script\u003e\n```\n\nMin files: Modern Browsers\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/gitbrent/pptxgenjs@3.12.0/libs/jszip.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/gitbrent/pptxgenjs@3.12.0/dist/pptxgen.min.js\"\u003e\u003c/script\u003e\n```\n\n## Download\n\n[GitHub Latest Release](https://github.com/gitbrent/PptxGenJS/releases/latest)\n\nBundle: Modern Browsers\n\n- Use the bundle for IE11 support\n\n```html\n\u003cscript src=\"PptxGenJS/dist/pptxgen.bundle.js\"\u003e\u003c/script\u003e\n```\n\nMin files: Modern Browsers\n\n```html\n\u003cscript src=\"PptxGenJS/libs/jszip.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"PptxGenJS/dist/pptxgen.min.js\"\u003e\u003c/script\u003e\n```\n\n## Additional Builds\n\n- CommonJS: `dist/pptxgen.cjs.js`\n- ES Module: `dist/pptxgen.es.js`\n\n---\n\n# Documentation\n\n## Quick Start Guide\n\nPptxGenJS PowerPoint presentations are created via JavaScript by following 4 basic steps:\n\n### Angular/React, ES6, TypeScript\n\n```typescript\nimport pptxgen from \"pptxgenjs\";\n\n// 1. Create a new Presentation\nlet pres = new pptxgen();\n\n// 2. Add a Slide\nlet slide = pres.addSlide();\n\n// 3. Add one or more objects (Tables, Shapes, Images, Text and Media) to the Slide\nlet textboxText = \"Hello World from PptxGenJS!\";\nlet textboxOpts = { x: 1, y: 1, color: \"363636\" };\nslide.addText(textboxText, textboxOpts);\n\n// 4. Save the Presentation\npres.writeFile();\n```\n\n### Script/Web Browser\n\n```javascript\n// 1. Create a new Presentation\nlet pres = new PptxGenJS();\n\n// 2. Add a Slide\nlet slide = pres.addSlide();\n\n// 3. Add one or more objects (Tables, Shapes, Images, Text and Media) to the Slide\nlet textboxText = \"Hello World from PptxGenJS!\";\nlet textboxOpts = { x: 1, y: 1, color: \"363636\" };\nslide.addText(textboxText, textboxOpts);\n\n// 4. Save the Presentation\npres.writeFile();\n```\n\nThat's really all there is to it!\n\n---\n\n## Library API\n\nFull documentation and code examples are available\n\n- [Creating a Presentation](https://gitbrent.github.io/PptxGenJS/docs/usage-pres-create/)\n- [Presentation Options](https://gitbrent.github.io/PptxGenJS/docs/usage-pres-options/)\n- [Adding a Slide](https://gitbrent.github.io/PptxGenJS/docs/usage-add-slide/)\n- [Slide Options](https://gitbrent.github.io/PptxGenJS/docs/usage-slide-options/)\n- [Saving a Presentation](https://gitbrent.github.io/PptxGenJS/docs/usage-saving/)\n- [Master Slides](https://gitbrent.github.io/PptxGenJS/docs/masters/)\n- [Adding Charts](https://gitbrent.github.io/PptxGenJS/docs/api-charts/)\n- [Adding Images](https://gitbrent.github.io/PptxGenJS/docs/api-images/)\n- [Adding Media](https://gitbrent.github.io/PptxGenJS/docs/api-media/)\n- [Adding Shapes](https://gitbrent.github.io/PptxGenJS/docs/api-shapes/)\n- [Adding Tables](https://gitbrent.github.io/PptxGenJS/docs/api-tables/)\n- [Adding Text](https://gitbrent.github.io/PptxGenJS/docs/api-text/)\n- [Speaker Notes](https://gitbrent.github.io/PptxGenJS/docs/speaker-notes/)\n- [Using Scheme Colors](https://gitbrent.github.io/PptxGenJS/docs/shapes-and-schemes/)\n- [Integration with Other Libraries](https://gitbrent.github.io/PptxGenJS/docs/integration/)\n\n---\n\n## HTML-to-PowerPoint Feature\n\nEasily convert HTML tables to PowerPoint presentations in a single call.\n\n```javascript\nlet pptx = new PptxGenJS();\npptx.tableToSlides(\"tableElementId\");\npptx.writeFile({ fileName: \"html2pptx-demo.pptx\" });\n```\n\nLearn more:\n\n- [HTML-to-PowerPoint Docs/Demo](https://gitbrent.github.io/PptxGenJS/html2pptx/)\n\n---\n\n# Library Ports\n\nReact: [react-pptx](https://github.com/wyozi/react-pptx) - thanks to [Joonas](https://github.com/wyozi)!\n\n---\n\n# Issues / Suggestions\n\nPlease file issues or suggestions on the [issues page on github](https://github.com/gitbrent/PptxGenJS/issues/new), or even better, [submit a pull request](https://github.com/gitbrent/PptxGenJS/pulls). Feedback is always welcome!\n\nWhen reporting issues, please include a code snippet or a link demonstrating the problem.\nHere is a small [jsFiddle](https://jsfiddle.net/gitbrent/L1uctxm0/) that is already configured and uses the latest PptxGenJS code.\n\n---\n\n# Need Help?\n\nSometimes implementing a new library can be a difficult task and the slightest mistake will keep something from working. We've all been there!\n\nIf you are having issues getting a presentation to generate, check out the code in the `demos` directory. There\nare demos for both client browsers, node and react that contain working examples of every available library feature.\n\n- Use a pre-configured jsFiddle to test with: [PptxGenJS Fiddle](https://jsfiddle.net/gitbrent/L1uctxm0/)\n- [View questions tagged `PptxGenJS` on StackOverflow](https://stackoverflow.com/questions/tagged/pptxgenjs?sort=votes\u0026pageSize=50). If you can't find your question, [ask it yourself](https://stackoverflow.com/questions/ask?tags=PptxGenJS) - be sure to tag it `PptxGenJS`.\n\n---\n\n# Contributors\n\nThank you to everyone for the issues, contributions and suggestions! ❤️\n\nSpecial Thanks:\n\n- [Dzmitry Dulko](https://github.com/DzmitryDulko) - Getting the project published on NPM\n- [Michal Kacerovský](https://github.com/kajda90) - New Master Slide Layouts and Chart expertise\n- [Connor Bowman](https://github.com/conbow) - Adding Placeholders\n- [Reima Frgos](https://github.com/ReimaFrgos) - Multiple chart and general functionality patches\n- [Matt King](https://github.com/kyrrigle) - Chart expertise\n- [Mike Wilcox](https://github.com/clubajax) - Chart expertise\n- [Joonas](https://github.com/wyozi) - React port\n\nPowerPoint shape definitions and some XML code via [Officegen Project](https://github.com/Ziv-Barber/officegen)\n\n---\n\n# Sponsor Us\n\nIf you find this library useful, please consider sponsoring us through a [donation](https://gitbrent.github.io/PptxGenJS/sponsor/)\n\n---\n\n# License\n\nCopyright \u0026copy; 2015-present [Brent Ely](https://github.com/gitbrent/PptxGenJS)\n\n[MIT](https://github.com/gitbrent/PptxGenJS/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitbrent%2FPptxGenJS","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitbrent%2FPptxGenJS","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitbrent%2FPptxGenJS/lists"}