Webflow is a no-code platform to easily build your website. Here's how to use Doppio to generate PDFs and screenshots from your Webflow pages.
Set Up Your Webflow Site
First, make sure your Webflow site is published and accessible via a public URL.
Get Your Doppio API Key
Sign up for a Doppio account and get your API key from the dashboard.
Generate a PDF
Use Doppio's API to generate a PDF from your Webflow page:
curl -X POST https://api.doppio.sh/v1/render/pdf/sync \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": {
"goto": {
"url": "https://your-site.webflow.io"
},
"pdf": {
"printBackground": true,
"format": "A4"
}
}
}'
Generate a Screenshot
You can also take screenshots of your Webflow pages:
curl -X POST https://api.doppio.sh/v1/render/screenshot/sync \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": {
"goto": {
"url": "https://your-site.webflow.io"
},
"screenshot": {
"type": "png",
"fullPage": true
}
}
}'
Automate with Webflow Webhooks
Webflow supports webhooks that can trigger on various events. You can combine Webflow webhooks with Zapier or Make to automatically generate PDFs whenever content is published.
With Doppio and Webflow, you can automate your document generation workflow without writing a single line of backend code.