Skip to content

Commit

Permalink
Added Slide Number formatting options
Browse files Browse the repository at this point in the history
Issue #68
  • Loading branch information
GitBrent authored and GitBrent committed Mar 30, 2017
1 parent 02e3d13 commit db24408
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,18 @@ var slide2 = pptx.addNewSlide( pptx.masters.TITLE_SLIDE, {bkgd:'FFFCCC'} );
### Adding Slide Numbers
```javascript
slide.slideNumber({ x:1.0, y:'90%' });
// Slide Numbers can be styled:
slide.slideNumber({ x:1.0, y:'90%', fontFace:'Courier', fontSize:32, color:'CF0101' });
```

### Slide Number Options
| Option | Type | Unit | Default | Description | Possible Values |
| :----------- | :------ | :----- | :-------- | :------------------ | :--------------- |
| `x` | number | inches | `0.3` | horizontal location | 0-n OR 'n%'. (Ex: `{x:'10%'}` places number 10% from left edge) |
| `y` | number | inches | `90%` | vertical location | 0-n OR 'n%'. (Ex: `{y:'90%'}` places number 90% down the Slide) |
| `color` | string | | | text color | hex color code. Ex: `{color:'0088CC'}` |
| `fontFace` | string | | | font face | any available font. Ex: `{fontFace:Arial}` |
| `fontSize` | number | points | | font size | 8-256. Ex: `{fontSize:12}` |

### Slide Return Value
The Slide object returns a reference to itself, so calls can be chained.
Expand Down
Loading

0 comments on commit db24408

Please sign in to comment.