Capture PDFs

Set format: "pdf" to render a page to PDF instead of an image. With fullPage: true the whole page becomes a single tall page; otherwise it's paginated to A4.

Example

curl -X POST https://screenshotforweb.com/api/v1/screenshot/download \
  -H "X-API-Key: sk_live_your_key" -H "Content-Type: application/json" \
  -d '{"url":"https://en.wikipedia.org/wiki/PDF","format":"pdf","fullPage":true}' \
  --output page.pdf

Tips

  • PDFs print backgrounds by default and use the screen media type for accurate rendering.
  • Use /screenshot (url mode) to get a signed link, or /screenshot/download for the raw file.