Skip to content

Commit c6aaeb3

Browse files
committed
fix(readme): update readme to ensure pdf type is passed to upstream render-vendor
1 parent cd1a989 commit c6aaeb3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@ export default Renderer.extend({
6262

6363
render() {
6464
return this._super({
65-
paperOptions: {
66-
width: '2.25in',
67-
height: '1.25in'
68-
}
69-
});
65+
type: 'pdf',
66+
width: '2.25in',
67+
height: '1.25in'
68+
})
7069
}
7170
});
7271
```
@@ -86,7 +85,7 @@ export Ember.Route.extend({
8685
actions: {
8786
renderPdf() {
8887
this.get('renderer').render()
89-
.then((filepath) => console.log(`path to pdf: ${filepath}`));
88+
.then((buffer) => console.log(`raw pdf buffer: ${buffer}`));
9089
}
9190
}
9291
});

0 commit comments

Comments
 (0)