Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/runnerty/executor-pdf

Runnerty module: PDF Executor
https://github.com/runnerty/executor-pdf

ejs ejs-templates executor pdf pdf-generation runnerty

Last synced: about 2 months ago
JSON representation

Runnerty module: PDF Executor

Awesome Lists containing this project

README

        

# PDF executor for [Runnerty]:

#### EJS Compatible

### Configuration sample:
```json
{
"id":"pdf_default",
"type":"@runnerty-executor-pdf"
}
```

### Plan sample:
#### https://github.com/marcbachmann/node-html-pdf#options
```json
{
"id":"pdf_default",
"html":"sample.html",
"output":"sample.pdf",
"papersize":{
"format":"A4",
"orientation":"portrait"
}
```

### Plan advanced:
#### https://github.com/marcbachmann/node-html-pdf#options
```json
{
"id":"pdf_default",
"html":"/etc/runnerty/sample.html",
"output":"/etc/runnerty/sample.pdf",
"papersize":{
"format":"A4",
"orientation":"portrait"
},
"pageoptions":{
"border": "1cm"
},
"typeoutput":"pdf",
"quality": "80",
"timeout": 30000,
"args":{
"created_date":":MMMM_EN, :DD :YYYY",
"due_date":":MMMM_EN, :DD :YYYY",
"invoice_id":":YYYY:MM0000:HH:mm:ss"
},
"header": {
"height": "45px",
"contents": "

Runnerty sample - PDF Executor
"
},
"footer": {
"height": "25mm",
"contents": {
"default": "{{page}}/{{pages}}",
"first": "First page",
"2": "Second page",
"last": "Last Page"
}
},
"httpHeaders": {
"Authorization": "Bearer ABCDE-1324-1234-1234"
}
}
```

[Runnerty]: http://www.runnerty.io