You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-17Lines changed: 16 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,15 +5,11 @@ This is a pptx generator for Node.js based on templates. It can read pptx files
5
5
This generator can only be used on the server-side and requires a [Node.js](https://nodejs.org/en/download/package-manager/) environment.
6
6
7
7
## Limitations
8
-
Please note that this project is *work in progress*. At the moment, it is *not* possible to handle slides containing:
9
-
* images
10
-
* links
11
-
* notes
12
-
13
-
Although, most other shape types are already supported, such as connection shapes or charts.
8
+
Please note that this project is *work in progress*. At the moment, you might encounter difficulties for special shape types that require internal relations.
9
+
Although, most shape types are already supported, such as connection shapes or charts.
14
10
15
11
## Install
16
-
You can add this package to your own project using npm:
12
+
You can add this package to your own project using npm or yarn:
17
13
```
18
14
yarn add pptx-automizer
19
15
```
@@ -25,24 +21,27 @@ npm install pptx-automizer
25
21
## Example
26
22
```js
27
23
importAutomizerfrom"pptx-automizer"
28
-
constautomizer=newAutomizer
29
24
30
-
// First, lets set some preferences
31
-
consttemplateFolder=`my/pptx/templates`
32
-
constoutputFolder=`my/pptx/output`
25
+
// First, let's set some preferences
26
+
constautomizer=newAutomizer({
27
+
templateDir:`my/pptx/templates`,
28
+
outputDir:`my/pptx/output`
29
+
})
33
30
34
-
//Let's start and import a root template. All slides will be appended to
35
-
// any existing slides in RootTemplate.pptx
36
-
let pres =automizer.importRootTemplate(`${templateFolder}/RootTemplate.pptx`)
31
+
//Now start and import a root template. All slides will be appended to
32
+
// any existing slide in RootTemplate.pptx
33
+
let pres =automizer.importRootTemplate(`RootTemplate.pptx`)
37
34
// We want to make two files available and give them a handy label.
0 commit comments