URL to PDF API
Convert any webpage to a high-quality PDF document with a single API parameter. Perfect for reports, invoices, legal documentation, and archival purposes.
How URL to PDF Works
GetScreenshot's PDF generation feature renders any webpage in a real browser and converts it to a properly formatted PDF document. The result preserves layouts, fonts, images, and styles.
Unlike simple HTML-to-PDF converters, our API handles JavaScript-rendered content, lazy-loaded images, and complex CSS layouts. You get the page exactly as it appears in a browser.
API Parameter
pdf=true
Set to true to receive a PDF instead of an image. The JSON response has a pdfFile URL in place of screenshotImage. Pages are A4 and include background graphics. The file is stored for 30 days.
Example Request
https://api.rasterwise.com/v1/get-screenshot
?apikey=YOUR_API_KEY
&url=https://example.com/invoice
&pdf=true
Response
{
"status": "success",
"originUrl": "https://example.com/invoice",
"pageStatus": 200,
"captureDate": "2026/11/18",
"captureHour": "14:03:22",
"aiAnalysis": null,
"pdfFile": "https://storage.googleapis.com/getscreenshot-storage/pdfAbC123xYz9.pdf"
}
Why Use Our URL to PDF API?
Advantages over traditional HTML-to-PDF solutions
JavaScript Rendering
Fully renders JavaScript-heavy pages. SPAs, React, Vue, and Angular apps all work perfectly.
Pixel-Perfect Output
PDFs look exactly like the webpage. Complex CSS layouts, web fonts, and images preserved.
No Server Setup
No need to install Puppeteer, Chrome, or wkhtmltopdf. Just make an API call.
Scalable
Generate hundreds or thousands of PDFs. Our infrastructure handles the load.
Cookie Support
Set a cookie with the cookie parameter to capture pages that depend on one. The page has to be reachable from the public internet.
Affordable
PDF generation included in all plans. Starting at $5/month for 2,500 API calls.
Common Use Cases
URL to PDF conversion for every workflow
Invoice & Receipt Generation
Convert web-based invoices and receipts to PDF for emailing to customers or storing records. Works with any invoicing platform.
Report Generation
Turn dashboard views, analytics pages, and data visualizations into PDF reports for stakeholders and clients.
Learn moreLegal Documentation
Capture terms of service, privacy policies, and web agreements as PDFs with timestamps for legal compliance.
Learn moreContent Archival
Archive web content as searchable PDFs for long-term storage, compliance, or research purposes.
Learn moreReal Estate Listings
Convert property listing pages to PDF brochures for sharing with buyers and keeping offline records.
Learn moreEducational Materials
Convert online articles, tutorials, and course content to PDFs for offline reading and distribution.
Enhance Your PDFs
Combine PDF generation with other features
Full Page
The PDF always contains the whole page, split across A4 pages. No extra parameter is needed.
Custom CSS
Inject print-friendly styles or hide navigation elements before PDF generation.
Hide Widgets
Add hidemsg=true to keep chat widgets out of your PDF documents.
Email Delivery
Email a download link for the PDF to any address when it is generated.
Ready to Generate PDFs from URLs?
Get started with GetScreenshot's affordable plans. PDF generation included in all tiers.