refactoring multipart from data handling from converter + tests for converter package

This commit is contained in:
Julien Neuhart
2018-04-05 15:20:44 +02:00
parent 62ad3e20fa
commit acea482456
5 changed files with 158 additions and 42 deletions

View File

@@ -0,0 +1,14 @@
port: 3000
logs:
level: "DEBUG"
format: "text"
commands:
html:
timeout: 30
template: "xvfb-run -e /dev/stdout wkhtmltopdf {{ .FilePath }} {{ .ResultFilePath }}"
office:
timeout: 30
template: "unoconv --format pdf --output \"{{ .ResultFilePath }}\" \"{{ .FilePath }}\""
merge:
timeout: 0
template: "pdftk {{ range $filePath := .FilesPaths }} {{ $filePath }} {{ end }} cat output {{ .ResultFilePath }}"