Skip to content

Commit 9760adb

Browse files
committed
In memory files can now be added to templates.
1 parent d45ec35 commit 9760adb

File tree

9 files changed

+1203
-1272
lines changed

9 files changed

+1203
-1272
lines changed

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ todo.txt
1010
.nyc_output/
1111
tsconfig.json
1212
test-output/
13-
test-template/
13+
test-template/
14+
*.bak

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ Expanding a web page and capturing a image:
5252
const data = { /* ... your data to be expanded into the template ... */ }
5353
const templatePath = "<path-to-load-your-template-web-page-from>";
5454
const outputPath = "<image-file-to-write-the-capture-to>";
55-
await captureImage(data, templatePath, outputPath);
55+
await captureImage(templatePath, data, outputPath);
5656

5757
Expanding a web page and capturing a PDF:
5858

5959
const data = { /* ... your data to be expanded into the template ... */ }
6060
const templatePath = "<path-to-load-your-template-web-page-from>";
6161
const outputPath = "<pdf-file-to-write-the-capture-to>";
62-
await capturePDF(data, templatePath, outputPath);
62+
await capturePDF(templatePath, data, outputPath);
6363

6464
## Command line usage
6565

0 commit comments

Comments
 (0)