Source
yaml
id: generate-pdf-with-gotenberg
namespace: company.team
variables:
server: https://demo.gotenberg.dev
template: https://sparksuite.github.io/simple-html-invoice-template/
tasks:
- id: pdf
type: io.kestra.plugin.scripts.shell.Commands
taskRunner:
type: io.kestra.plugin.core.runner.Process
warningOnStdErr: false
commands:
- curl --request POST '{{ vars.server }}/forms/chromium/convert/url'
--form 'url="{{ vars.template }}"' -o {{ outputDir }}/myfile.pdf
About this blueprint
CLI API
You can start your Gotenberg API server using the command: docker run --rm -p 3000:3000 gotenberg/gotenberg:7
. Replace the server
variable below to point to your server. For development, you can test your workflow using the demo API: https://demo.gotenberg.dev.
For more information, see the Gotenberg documentation.
More Related Blueprints