Example tasks
Generate a PDF using react-pdf and save it to R2
This example will show you how to generate a PDF using Trigger.dev.
Overview
This example demonstrates how to use Trigger.dev to generate a PDF using react-pdf
and save it to Cloudflare R2.
Task code
This example must be a .tsx file to use React components.
trigger/generateResumePDF.tsx
Testing your task
To test this task in the dashboard, you can use the following payload:
Was this page helpful?