- 
                Notifications
    You must be signed in to change notification settings 
- Fork 772
Version 3.0 Migration Guide
        Brent Ely edited this page Nov 8, 2019 
        ·
        11 revisions
      
    - There are major breaking changes in Version 3.0
- Your existing code will not function without updates to your code
The save() method has been removed.
Use one of these new methods instead - all of them return a Promise.
| Save Methods | Description | 
|---|---|
| writeFile(name) | browser-based apps: downloads file. node apps: uses fsto write to the local file system | 
| write(type) | returns the presentation in selected type (arraybuffer, blob, base64, and more) | 
| stream() | returns the presentation as a stream | 
| Old Method Name | New Method Name | 
|---|---|
| addNewSlide() | addSlide() | 
| addSlidesForTable() | tableToSlides() | 
PptxGenJS now exposes properties using ES5 JavaScript getters/setters.
| Old Method Name | New Method Name | 
|---|---|
| pptx.setAuthor('Brent Ely') | pptx.author = 'Brent Ely' | 
| pptx.setCompany('STAR Labs') | pptx.company = 'STAR Labs' | 
| pptx.setRevision('15') | pptx.revision = '15' | 
| pptx.setSubject('Report') | pptx.subject = 'Report' | 
| pptx.setTitle('My Presentation') | pptx.title = 'My Presentation' | 
| pptx.setRTL(true) | pptx.rtlMode = true | 
| pptx.setLayout('LAYOUT_NAME') | pptx.layout = 'LAYOUT_4x3' | 
- Version 2.x Docs
- [WIP] updated API docs are underway (20191105)