For products that send documents
Turn the HTML you already have into a PDF
Send HTML in the request and get a PDF back, laid out by real Chromium at the paper size you choose.
The problem
Invoices, receipts, reports, certificates: documents your product already knows how to draw as HTML, that somebody now wants as a PDF. A converter that is not a real browser can lay the page out differently from the browser you designed it in, and running Chromium next to your app to avoid that is its own project.
How domscout handles it
Send the HTML in the request instead of a URL, with format: pdf, and it is laid out by Chromium and returned as a PDF. pdfFormat sets the paper size (A0 to A6, Letter, Legal, Tabloid or Ledger), landscape turns the page, and backgrounds are printed unless you set printBackground to false. With responseType: binary the response body is the PDF itself. A request can carry up to 1,000,000 characters of HTML.
Where it shows up
- Invoices and receipts generated when an order completes.
- Reports rendered from the same template as the page in your app.
- Certificates and handouts produced from a course or event record.
The request
POST /screenshot. PDF output starts at Pro. A PDF costs 2 credits: 1 for the capture and 1 for the PDF.
Go further
More in Screenshots, images and PDFs: Thumbnails and link previews · HTML to image · Web page to PDF · Screenshots of a list of URLs · Product screenshots for docs · Dashboard screenshots to chat · Monthly reports for clients · Email template previews · Full-page captures for review tools · All use cases
Give your product a browser.
Get clean web content and visual proof into your workflow in minutes.