Skip to content

Commit

Permalink
Starting work on master slides section
Browse files Browse the repository at this point in the history
  • Loading branch information
GitBrent authored and GitBrent committed Nov 11, 2016
1 parent 93a77a3 commit e3f1203
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Now available on NPM/Node:
- [Text Example](#text-example)
- [Shape Example](#shape-example)
- [Image Example](#image-example)
- [Master Slides and Corporate Branding](#master-slides-and-corporate-branding)
- [Master Slides](#master-slides)
- [Library Reference](#library-reference)
- [Presentation Options](#presentation-options)
- [Available Layouts](#available-layouts)
Expand Down Expand Up @@ -63,24 +65,18 @@ Use JavaScript to Create PowerPoint presentations right from our demo page
PptxGenJS requires only three additional JavaScript libraries to function.

```javascript
<script lang="javascript" src="dist/jquery.min.js"></script>
<script lang="javascript" src="dist/jszip.min.js"></script>
<script lang="javascript" src="dist/filesaver.min.js"></script>
<script lang="javascript" src="dist/pptxgen.js"></script>
<script lang="javascript" src="PptxGenJS/libs/jquery.min.js"></script>
<script lang="javascript" src="PptxGenJS/libs/jszip.min.js"></script>
<script lang="javascript" src="PptxGenJS/libs/filesaver.min.js"></script>
<script lang="javascript" src="PptxGenJS/dist/pptxgen.js"></script>
```

# Optional Modules
If you are planning on creating Shapes (basically anything other than Text, Tables or rectangles), then you'll want to
include the `pptxgen.shapes.js` library. It's a complete PowerPoint PPTX Shape object array thanks to the
[officegen project](https://github.com/Ziv-Barber/officegen)
```javascript
<script lang="javascript" src="dist/pptxgen.shapes.js"></script>
```

For times when a plain white slide won't due, why not create a Slide Master? (especially useful for corporate environments).
See the one in the examples folder to get started
```javascript
<script lang="javascript" src="dist/pptxgen.masters.js"></script>
<script lang="javascript" src="PptxGenJS/dist/pptxgen.shapes.js"></script>
```

**************************************************************************************************
Expand Down Expand Up @@ -236,6 +232,16 @@ slide.addImage('images/cc_license_comp_chart.png', 6.6, 0.75, 6.30, 3.70 )
pptx.save('Demo-Shapes');
```

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

## Slide Styles
For times when a plain white slide won't due, why not create a Slide Master? (especially useful for corporate environments).
See the one in the examples folder to get started
```javascript
<script lang="javascript" src="PptxGenJS/dist/pptxgen.masters.js"></script>
```

**************************************************************************************************
# Library Reference

Expand Down

0 comments on commit e3f1203

Please sign in to comment.