cURLPythonNode.jsn8n
# Convert any URL to PDF
curl -X POST \
https://api.convertfilefast.com/v2/convert/url-to-pdf \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/annual-report",
"options": {"page_size": "A4", "orientation": "portrait"}
}' \
--output webpage.pdf
# HTTP 200 OK — Content-Type: application/pdfConversion completed in <2s
优势
为什么使用我们的API?
完整可靠的解决方案,适用于任何技术栈的集成。
任意公共URL
将任意可公开访问的网页、文章或仪表板转换为PDF。
CSS渲染
完整CSS渲染保留原始页面布局、颜色和字体排版。
自定义页面设置
设置A4/Letter大小、纵向/横向和自定义边距。
快速捕获
页面在几秒内获取并转换,慢速页面有30秒超时。
SSRF保护
内置服务端请求伪造保护,确保安全性。
自动归档
与n8n/cron配合使用,按计划自动归档网络内容。