Skip to content

Commit

Permalink
Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Kacerovsky committed Aug 16, 2017
1 parent 39fa2fb commit 1f6bfd1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Quickly and easily create PowerPoint presentations with a few simple JavaScript
- [Saving a Presentation](#saving-a-presentation)
- [Client Browser](#client-browser)
- [Node.js](#nodejs-1)
- [Specific output type](#specific-output-type)
- [Presentations: Adding Objects](#presentations-adding-objects)
- [Adding Charts](#adding-charts)
- [Chart Types](#chart-types)
Expand Down Expand Up @@ -287,7 +288,17 @@ pptx.save( 'Node_Demo', saveCallback );
pptx.save( 'http', streamCallback );
```

Saving multiple Presentations:
### Specific output type
When a save callback function is specified (no matter whether on a client or in Node), an extra parametr can be passed – `outputType`.
This parameter accepts any value of [the JSzip supported formats](https://stuk.github.io/jszip/documentation/api_jszip/generate_async.html). For example:

```javascript
pptx.save( 'whatever', function(content) {
console.log(content);
}, 'base64');
```

Saving multiple Presentations:
* In order to generate a new, unique Presentation just create a new instance of the library then add objects and save as normal.

```javascript
Expand Down

0 comments on commit 1f6bfd1

Please sign in to comment.