Basic PDF
- cURL
- Node.js
- Python
Paper Size, Margins and Headers
/pdf accepts print options on top of the shared capture options:
Download PDF Directly
Get the raw PDF file instead of a JSON response:PDF Features
- Vector text - Text is selectable and searchable
- Links preserved - Clickable links work in the PDF
- Print-ready - Suitable for printing
- Accurate rendering - Matches browser display
Use Cases
- Invoices - Generate printable invoices from web apps
- Reports - Convert dashboards to PDF reports
- Documentation - Export docs for offline reading
- Archives - Long-term document preservation
Best Practices
For best PDF results:- Wait for content - Use
networkidlefor dynamic pages - Increase timeout - Complex pages need more time
- Test print styles - Check
@media printCSS