Skip to content

Commit

Permalink
Define default options for a job (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdow authored and codecounselor committed Jan 26, 2017
1 parent 786e8ce commit 4083437
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ app.post('/pdfexport', function(req,res){
*/
inMemory: false
}
const options = {
pageSize : "A4"
}
exporter.createJob(source, target, options, jobOptions).then( job => {
job.on('job-complete', (r) => {
console.log('pdf files:', r.results)
Expand Down

0 comments on commit 4083437

Please sign in to comment.