mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 08:32:16 +01:00
35 lines
921 B
YAML
35 lines
921 B
YAML
port: 3000
|
|
logs:
|
|
level: "DEBUG"
|
|
formatter: "text"
|
|
commands:
|
|
merge:
|
|
template: "pdftk {{ range $filePath := .FilesPaths }} {{ $filePath }} {{ end }} cat output {{ .ResultFilePath }}"
|
|
interpreter: "/bin/sh -c"
|
|
timeout: 30
|
|
conversions:
|
|
- template: "markdown-pdf {{ .FilePath }} -o {{ .ResultFilePath }}"
|
|
interpreter: "/bin/sh -c"
|
|
timeout: 30
|
|
extensions:
|
|
- ".md"
|
|
- template: "xvfb-run -e /dev/stdout wkhtmltopdf {{ .FilePath }} {{ .ResultFilePath }}"
|
|
interpreter: "/bin/sh -c"
|
|
timeout: 30
|
|
extensions:
|
|
- ".html"
|
|
- ".htm"
|
|
- template: "unoconv --format pdf --output \"{{ .ResultFilePath }}\" \"{{ .FilePath }}\""
|
|
interpreter: "/bin/sh -c"
|
|
timeout: 30
|
|
extensions:
|
|
- ".doc"
|
|
- ".docx"
|
|
- ".odt"
|
|
- ".xls"
|
|
- ".xlsx"
|
|
- ".ods"
|
|
- ".ppt"
|
|
- ".pptx"
|
|
- ".odp"
|