How beautifulai/pptxgenjs works
PptxGenJS is a JavaScript library for building OOXML PowerPoint presentations. Its main workflow is to create a presentation, add slides and content, then serialize and export a PPTX file. The graph includes documented chart, media, master-slide, and HTML-table capabilities, plus the internal generators that turn slide content into OOXML. Connections among implementation modules are based on the README workflow and SOURCE INDEX references; unsampled implementation details are not assumed.
Main entry points: pptxgen.ts Presentation · gen-objects.ts Shapes and Images · gen-utils.ts Generation Utilities · core-interfaces.ts Data Interfaces
Components 17
Presentation API
- Presentation
src/pptxgen.ts - Slide
src/slide.ts
Slide Content
- Tables and HTML
src/gen-tables.ts - Shapes and Images
src/gen-objects.ts - Charts
src/gen-charts.ts - Media
src/gen-media.ts
OOXML Generation
- OOXML Serializer
src/gen-xml.ts - Paragraphs
src/generators/paragraph.ts - Bullets
src/generators/bullet.ts - Text Properties
src/generators/textRun/properties.ts - Generation Utilities
src/gen-utils.ts - Image Utilities
src/utils/imageUtils.ts
Shared Types
- Enums
src/core-enums.ts - Data Interfaces
src/core-interfaces.ts
Other components
- Library User
- JSZip
- PPTX File
Connections 30
- Library User → Presentation: creates
README.md - Presentation → Slide: adds slides
src/pptxgen.ts - Library User → Slide: adds content
README.md - Presentation → Shapes and Images: adds objects
src/pptxgen.ts - Presentation → Charts: adds charts
src/pptxgen.ts - Presentation → Media: adds media
src/pptxgen.ts - Presentation → Tables and HTML: converts tables
src/pptxgen.ts - Slide → Shapes and Images: adds objects
src/slide.ts - Presentation → Media: encodes media
src/pptxgen.ts - Presentation → OOXML Serializer: generates OOXML
src/pptxgen.ts - Presentation → JSZip: packages output
src/pptxgen.ts - Presentation → PPTX File: writes file
README.md - Shapes and Images → Tables and HTML: uses table generation
src/gen-objects.ts - Shapes and Images → Generation Utilities: uses
src/gen-objects.ts - Shapes and Images → Image Utilities: uses image helpers
src/gen-objects.ts - OOXML Serializer → Paragraphs: uses
src/gen-xml.ts - Paragraphs → Bullets: generates bullets
src/generators/paragraph.ts - Paragraphs → Text Properties: generates run properties
src/generators/paragraph.ts - OOXML Serializer → Generation Utilities: uses
src/gen-xml.ts - Charts → Generation Utilities: uses
src/gen-charts.ts - Tables and HTML → Generation Utilities: uses
src/gen-tables.ts - Presentation → Enums: uses
src/pptxgen.ts - Presentation → Data Interfaces: uses
src/pptxgen.ts - Shapes and Images → Enums: uses
src/gen-objects.ts - Shapes and Images → Data Interfaces: uses
src/gen-objects.ts - Charts → Data Interfaces: uses
src/gen-charts.ts - Media → Data Interfaces: uses
src/gen-media.ts - Image Utilities → Data Interfaces: uses
src/utils/imageUtils.ts - Image Utilities → Generation Utilities: uses
src/utils/imageUtils.ts - Tables and HTML → PPTX File: supports HTML conversion
README.md