File tree 2 files changed +13
-10
lines changed
2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -68,12 +68,13 @@ exporter.start()
68
68
``` javascript
69
69
app .post (' /pdfexport' , function (req ,res ){
70
70
// derive job arguments from request here
71
- var job = exporter .createJob (source, target, options)
71
+ exporter .createJob (source, target, options). then ( job => {
72
72
job .on (' job-complete' , (r ) => {
73
- console .log (' pdf files:' , r .results )
74
- // Process the PDF file(s) here
75
- })
76
- job .render ()
73
+ console .log (' pdf files:' , r .results )
74
+ // Process the PDF file(s) here
75
+ })
76
+ job .render ()
77
+ })
77
78
})
78
79
```
79
80
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " electron-pdf" ,
3
- "version" : " 0.13.1 " ,
3
+ "version" : " 1.0.0 " ,
4
4
"description" : " A command line tool to generate PDF from URL, HTML or Markdown files" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
24
24
" pdf" ,
25
25
" png" ,
26
26
" export" ,
27
- " render"
27
+ " render" ,
28
+ " html" ,
29
+ " markdown"
28
30
],
29
- "author" : " Fraser Xu" ,
31
+ "author" : " Fraser Xu, Nate Good " ,
30
32
"license" : " MIT" ,
31
33
"bugs" : {
32
34
"url" : " https://github.com/fraserxu/electron-pdf/issues"
42
44
"dependencies" : {
43
45
"async" : " ^2.0.1" ,
44
46
"bluebird" : " ^3.4.6" ,
45
- "debug" : " ^2.2.0 " ,
46
- "electron" : " ^1.4.3 " ,
47
+ "debug" : " ^2.3.2 " ,
48
+ "electron" : " ^1.4.6 " ,
47
49
"eventemitter2" : " ^2.1.3" ,
48
50
"github-markdown-css" : " ^2.0.9" ,
49
51
"highlight.js" : " ^9.0.0" ,
You can’t perform that action at this time.
0 commit comments