Skip to content

Commit

Permalink
Updating for v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GitBrent authored and GitBrent committed Feb 16, 2017
1 parent b2cd8b0 commit a7ef233
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change Log

## [v1.2.0](https://github.com/gitbrent/pptxgenjs/tree/v1.2.0) (2017-02-13)
## [v1.2.0](https://github.com/gitbrent/pptxgenjs/tree/v1.2.0) (2017-02-15)
[Full Changelog](https://github.com/gitbrent/pptxgenjs/compare/v1.1.6...v1.2.0)

**Implemented Enhancements:**
Expand All @@ -11,6 +11,11 @@
- Table cell marginPt should allow zero and take TRBL array [\#32](https://github.com/gitbrent/PptxGenJS/issues/32) ([ellisgl](https://github.com/ellisgl))
- Formatting rules do not apply to string with '\n' in `addText()` [\#34](https://github.com/gitbrent/PptxGenJS/issues/34) ([itskun](https://github.com/itskun))
- Node module appends to last generated PPT on `save()` [\#38](https://github.com/gitbrent/PptxGenJS/issues/38) ([alexanderpepper](https://github.com/alexanderpepper))
- callback support for save method [\#40](https://github.com/gitbrent/PptxGenJS/issues/40) ([ellisgl](https://github.com/ellisgl))
- Callback for save method (nodejs only) [\#41](https://github.com/gitbrent/PptxGenJS/pull/41) ([ellisgl](https://github.com/ellisgl))

**Fixed Bugs:**
- Table formatting bug in `addTable()` [\#36](https://github.com/gitbrent/PptxGenJS/issues/36) ([itskun](https://github.com/itskun))

## [v1.1.6](https://github.com/gitbrent/pptxgenjs/tree/v1.1.6) (2017-01-19)
[Full Changelog](https://github.com/gitbrent/pptxgenjs/compare/v1.1.5...v1.1.6)
Expand Down
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ an HTML Table across one or more Slides with a single command.
- [Adding Media (Audio/Video/YouTube)](#adding-media-audiovideoyoutube)
- [Media Options](#media-options)
- [Media Examples](#media-examples)
- [Saving Presentations](#saving-presentations)
- [Master Slides and Corporate Branding](#master-slides-and-corporate-branding)
- [Slide Masters](#slide-masters)
- [Slide Master Examples](#slide-master-examples)
Expand Down Expand Up @@ -510,6 +511,27 @@ slide.addMedia({ type:'online', link:'https://www.youtube.com/embed/Dph6ynRVyUc'
pptx.save('Demo-Media');
```

## Saving Presentations

Client Browser:
* Simply provide a filename

```javascript
pptx.save('Demo-Media');
```

Node.js:
* Node can accept a callback function that will return the filename

```javascript
// A: File will be saved to the local working directory (`__dirname`)
pptx.save('Node_Demo');
// B: Inline callback function
pptx.save('Node_Demo', function(filename){ console.log('Created: '+filename); } );
// C: Predefined callback function
pptx.save('Node_Demo', saveCallback );
```

**************************************************************************************************
# Master Slides and Corporate Branding

Expand Down

0 comments on commit a7ef233

Please sign in to comment.