> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spoolpdf.nandra.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# URL to PDF

> Render a public http(s) page. Private hosts return ssrf_blocked.

Use this when the page already lives on a public URL. HTML is faster when you control the markup.

```bash theme={null}
curl -sS -D - -o page.pdf \
  -X POST "$SPOOLPDF_BASE_URL/v1/render" \
  -H "Authorization: Bearer $SPOOLPDF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/"}'
```

Loopback and private hosts (`127.0.0.1`, `10.x`, `192.168.x`, and similar) and non-http(s) schemes return `422` `ssrf_blocked`.

For client-rendered apps, add a [wait](/guides/waits-and-auth). For a session, use `cookies` or `auth`, not a `Cookie` header.
