Guides
Complete, runnable programs for the things people build with snapdok — one page per language, HTTP library and task. Every sample uses real parameters from the API reference and handles the errors that actually happen. Guides covering fillable PDF forms — the capability that sets snapdok apart — are marked in the lists below. More languages and libraries are added in batches.
Python — requests
- Convert an HTML form to a fillable PDF · fillable PDF
- Get a fillable PDF of just the form — no nav, no footer · fillable PDF
- Generate a fillable invoice PDF from a web page · fillable PDF
- Turn an online registration form into a fillable PDF · fillable PDF
- Wait for a JavaScript-rendered form, then make it fillable · fillable PDF
- Verify a fillable PDF render without opening the file · fillable PDF
- Convert a URL to PDF
- Take a full-page screenshot
- Capture very tall pages as numbered tiles
- Take a retina-quality (2x) screenshot
- Take a JPEG screenshot at a custom viewport size
- Use the 24-hour render cache to cut costs
- Take a screenshot of a URL
- Capture a JavaScript-heavy page after it settles
- Wait for a specific element before capturing
- Add page numbers and headers to a PDF
Python — httpx
- Convert a URL to PDF
- Take a full-page screenshot
- Capture very tall pages as numbered tiles
- Take a retina-quality (2x) screenshot
- Take a JPEG screenshot at a custom viewport size
- Use the 24-hour render cache to cut costs
- Take a screenshot of a URL
- Capture a JavaScript-heavy page after it settles
- Wait for a specific element before capturing
- Add page numbers and headers to a PDF
Node.js — built-in fetch
- Convert an HTML form to a fillable PDF · fillable PDF
- Get a fillable PDF of just the form — no nav, no footer · fillable PDF
- Generate a fillable invoice PDF from a web page · fillable PDF
- Turn an online registration form into a fillable PDF · fillable PDF
- Wait for a JavaScript-rendered form, then make it fillable · fillable PDF
- Verify a fillable PDF render without opening the file · fillable PDF
- Convert a URL to PDF
- Take a full-page screenshot
- Capture very tall pages as numbered tiles
- Take a retina-quality (2x) screenshot
- Take a JPEG screenshot at a custom viewport size
- Use the 24-hour render cache to cut costs
- Take a screenshot of a URL
- Capture a JavaScript-heavy page after it settles
- Wait for a specific element before capturing
- Add page numbers and headers to a PDF
Node.js — axios
- Convert a URL to PDF
- Take a full-page screenshot
- Capture very tall pages as numbered tiles
- Take a retina-quality (2x) screenshot
- Take a JPEG screenshot at a custom viewport size
- Use the 24-hour render cache to cut costs
- Take a screenshot of a URL
- Capture a JavaScript-heavy page after it settles
- Wait for a specific element before capturing
- Add page numbers and headers to a PDF
PHP — cURL extension
- Convert an HTML form to a fillable PDF · fillable PDF
- Get a fillable PDF of just the form — no nav, no footer · fillable PDF
- Generate a fillable invoice PDF from a web page · fillable PDF
- Turn an online registration form into a fillable PDF · fillable PDF
- Wait for a JavaScript-rendered form, then make it fillable · fillable PDF
- Verify a fillable PDF render without opening the file · fillable PDF
- Convert a URL to PDF
- Take a full-page screenshot
- Capture very tall pages as numbered tiles
- Take a retina-quality (2x) screenshot
- Take a JPEG screenshot at a custom viewport size
- Use the 24-hour render cache to cut costs
- Take a screenshot of a URL
- Capture a JavaScript-heavy page after it settles
- Wait for a specific element before capturing
- Add page numbers and headers to a PDF
Ruby — Net::HTTP
- Convert an HTML form to a fillable PDF · fillable PDF
- Get a fillable PDF of just the form — no nav, no footer · fillable PDF
- Generate a fillable invoice PDF from a web page · fillable PDF
- Turn an online registration form into a fillable PDF · fillable PDF
- Wait for a JavaScript-rendered form, then make it fillable · fillable PDF
- Verify a fillable PDF render without opening the file · fillable PDF
- Convert a URL to PDF
- Take a full-page screenshot
- Capture very tall pages as numbered tiles
- Take a retina-quality (2x) screenshot
- Take a JPEG screenshot at a custom viewport size
- Use the 24-hour render cache to cut costs
- Take a screenshot of a URL
- Capture a JavaScript-heavy page after it settles
- Wait for a specific element before capturing
- Add page numbers and headers to a PDF