Loading...
Loading...
PDForge (PDF Noodle) API for generating PDFs from templates or HTML via curl.
npx skill4agent add vm0-ai/vm0-skills pdforgecurlOfficial docs:https://docs.pdforge.com/
api.pdforge.comapi.pdfnoodle.compdfnoodle_api_xxxxxPDFORGE_API_KEYexport PDFORGE_API_KEY="pdfnoodle_api_your-key-here"Important: When usingin a command that pipes to another command, wrap the command containing$VARin$VAR. Due to a Claude Code bug, environment variables are silently cleared when pipes are used directly.bash -c '...'bashbash -c 'curl -s "https://api.example.com" -H "Authorization: Bearer $API_KEY"' | jq '.field'
PDFORGE_API_KEYhttps://api.pdfnoodle.com/v1/tmp/pdforge_request.json{
"templateId": "your-template-id",
"data": {
"name": "John Doe",
"date": "2025-01-15",
"items": [
{"description": "Item 1", "price": 100},
{"description": "Item 2", "price": 200}
]
}
}bash -c 'curl -s -X POST "https://api.pdfnoodle.com/v1/pdf/sync" --header "Authorization: Bearer ${PDFORGE_API_KEY}" --header "Content-Type: application/json" -d @/tmp/pdforge_request.json'{
"signedUrl": "https://storage.googleapis.com/...",
"executionTime": 1234
}signedUrl/tmp/pdforge_request.json{
"templateId": "your-template-id",
"webhook": "https://your-server.com/webhook",
"data": {
"name": "Jane Doe",
"amount": 500
}
}bash -c 'curl -s -X POST "https://api.pdfnoodle.com/v1/pdf/async" --header "Authorization: Bearer ${PDFORGE_API_KEY}" --header "Content-Type: application/json" -d @/tmp/pdforge_request.json'{
"requestId": "abc123"
}signedUrl/tmp/pdforge_request.json{
"html": "<html><body><h1>Hello World</h1><p>This is a PDF generated from HTML.</p></body></html>"
}bash -c 'curl -s -X POST "https://api.pdfnoodle.com/v1/html-to-pdf/sync" --header "Authorization: Bearer ${PDFORGE_API_KEY}" --header "Content-Type: application/json" -d @/tmp/pdforge_request.json'/tmp/pdforge_request.json{
"html": "<html><head><style>body { font-family: Arial; } h1 { color: #333; } .invoice { border: 1px solid #ddd; padding: 20px; }</style></head><body><div class=\"invoice\"><h1>Invoice #001</h1><p>Amount: $500</p></div></body></html>"
}bash -c 'curl -s -X POST "https://api.pdfnoodle.com/v1/html-to-pdf/sync" --header "Authorization: Bearer ${PDFORGE_API_KEY}" --header "Content-Type: application/json" -d @/tmp/pdforge_request.json'convertToImage/tmp/pdforge_request.json{
"html": "<html><body><h1>Image Export</h1></body></html>",
"convertToImage": true
}bash -c 'curl -s -X POST "https://api.pdfnoodle.com/v1/html-to-pdf/sync" --header "Authorization: Bearer ${PDFORGE_API_KEY}" --header "Content-Type: application/json" -d @/tmp/pdforge_request.json'signedUrl<your-signed-url>curl -s -o output.pdf "https://storage.googleapis.com/<your-signed-url>"| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | Template ID from dashboard |
| object | Yes | Variables for the template |
| string | Async only | Webhook URL for delivery |
| boolean | No | Return PNG instead of PDF |
| object | No | PDF metadata (title, author, etc.) |
| boolean | No | Hide header/footer on first page |
| boolean | No | Enable debug mode |
| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | HTML content to convert |
| boolean | No | Return PNG instead of PDF |
| object | No | PDF metadata settings |
| object | No | PDF generation options |
{
"metadata": {
"title": "Invoice #001",
"author": "Company Name",
"subject": "Monthly Invoice",
"keywords": ["invoice", "payment"]
}
}