← Blog

How to Capture a Webpage as a PDF

April 30, 2026

Need to capture webpage as PDF without maintaining screenshot infrastructure? FrameSnap gives you a browser-backed API for repeatable captures.

Steps

  1. Pass the page URL to FrameSnap
  2. Set format=pdf
  3. Use a desktop viewport for predictable layout
  4. Store the PDF in your app or workflow

API example

curl 'https://framesnap.dev/v1/screenshot?url=https://example.com&width=1280&height=800&format=png' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  --output screenshot.png

Tips for reliable captures

Try the free screenshot tool or create an API key to start capturing screenshots from your own workflow.

Capture Screenshots with FrameSnap

One API call. PNG, JPEG, or PDF. Free tier included.