Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Send HTML you already have. Fastest path and no SSRF check.
curl -sS -D - -o invoice.pdf \ -X POST "$SPOOLPDF_BASE_URL/v1/render" \ -H "Authorization: Bearer $SPOOLPDF_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "html": "<h1>Invoice #1001</h1><p>Total: $42.00</p>", "format": "A4", "print_background": true }'
200
application/pdf
X-Request-Id
X-Usage-Count
sandbox
import { SpoolPdfClient } from "@spoolpdf/sdk-node"; const client = new SpoolPdfClient({ apiKey: process.env.SPOOLPDF_API_KEY }); const pdf = await client.render({ html: "<h1>Invoice #1001</h1>", format: "A4", print_background: true, });
$pdf = (new Spoolpdf\Sdk\Client(getenv('SPOOLPDF_API_KEY')))->render([ 'html' => '<h1>Invoice #1001</h1>', 'format' => 'A4', 'print_background' => true, ]);