pptxgenjs-plus
v4.3.1
Published
Create JavaScript PowerPoint Presentations
Maintainers
Keywords
Readme
pptxgenjs-plus
_/| \|\||
/ | `_ generate pptx -- |||/
/ =\ using typescript on node /= |||/
_-' \ or in the browser / |||||/
_____________-' _`-/ \-' |||||||/`-_____________
\ / -- -||||||||| /
\ \ |/|||| /
|_____ _\ \_______ _______/ /_ _____|
_________.\___,-' \__________/ \___________/ `-.___/,_________Getting started
npm install pptxgenjs-plusimport pptxgen from 'pptxgenjs-plus'
const pres = new pptxgen()
const slide = pres.addSlide()
slide.addText('Hello', { x: 0.5, y: 0.5, fontSize: 24 })
await pres.writeFile({ fileName: 'hello.pptx' })Declarative JSX lives in the workspace package pptxgenjs-plus-jsx (packages/pptxgenjs-jsx):
/** @jsxImportSource pptxgenjs-plus-jsx */
import { Deck, Slide, Text } from 'pptxgenjs-plus-jsx'
import { renderPptx } from 'pptxgenjs-plus-jsx/render'
await renderPptx(
<Deck title="Hello">
<Slide>
<Text x={0.5} y={0.5} w={8} h={1} fontSize={24}>Hello</Text>
</Slide>
</Deck>,
{ fileName: 'hello.pptx' },
)Contributors
Thanks to everyone who contributed to the original project and this distribution.
Notable contributions:
- Dzmitry Dulko — initial NPM publication
- Michal Kacerovský — Master Slide layouts and chart expertise
- Connor Bowman — placeholder support
- Reima Frgos — chart and general functionality patches
- Matt King — chart expertise
- Mike Wilcox — chart expertise
- Joonas — react-pptx
- NEOMA GmbH — thank you for the
@neo-ma/pptxgenjshardening work (strict null-safety, OOXML package contracts, LibreOffice consumer checks) that this fork builds on
PowerPoint shape definitions and portions of the XML generation are derived from the Officegen Project.
