Document Generation

Effortlessly Generate PDFs, Screenshots & Screencasts

Reliably render documents and images from your website, with CSS injections and custom formatting. Built for scale, optimized for quality.

Powerful Features

Everything you need for document generation

From simple screenshots to complex PDF rendering, we've got you covered with enterprise-grade tools and APIs.

Multiple Integration Methods
Use Puppeteer, Playwright, or our REST APIs directly. Write scripts in your preferred language or make simple HTTP requests for instant results.
Predictable Rendering
Enable headless=false to render pages like a normal browser. Edit pages by hiding panels, changing widths, or injecting HTML and CSS for exact output.
GPU-Accelerated Generation
Dedicated instances with GPU support for lightning-fast rendering. Load animations 8x faster or stream browser interactions seamlessly.
Session Reconnection
Pause and resume browser sessions without losing state. Perfect for multi-step workflows like authentication before capturing content.
Custom Formatting
Inject custom CSS, control print backgrounds, emulate media types, and load additional stylesheets for pixel-perfect documents.
Built for Scale
Generate thousands of documents per day with reliable performance. Automatic session management prevents memory leaks and timeouts.

Use Puppeteer, Playwright or our REST APIs

Write scripts with Puppeteer or Playwright, or use our /pdf, /screenshot, and /screencast APIs directly. These APIs include refinement options like printBackground, emulateMediaType, and the ability to load extra stylesheets or scripts.

Check out the API docs
PDF API code example
Predictable rendering illustration

Predictable rendering for easy editing

Enable headless=false to render pages like a normal browser at your chosen window size. You can then edit pages by hiding panels, changing widths, or injecting HTML and CSS to get the exact output you need.

Read about PDF generation

Speedy generation with GPUs

Our dedicated instances support GPU enabling for fast image-intensive rendering. Load animations 8x faster or stream browser interactions via chrome flags.

Read about enabling GPUs
GPU generation illustration
Reconnect to sessions illustration

Reconnect to remote sessions

Switch between tasks without closing browsers using our /reconnect API, ideal for pausing for login tasks. Browserless manages session timeouts and prevents memory leaks.

Read about reconnects

Use our API or an unforked library

Get started in minutes with your favorite browser automation library or our simple REST APIs.

Puppeteer
Generate screenshots with Puppeteer
import puppeteer from 'puppeteer';

const browser = await puppeteer.connect({
  browserWSEndpoint: 'wss://production-sfo.browserless.io?token=YOUR_API_TOKEN'
});

const page = await browser.newPage();
await page.goto('https://example.com/');
await page.screenshot({ path: 'screenshot.png' });
browser.close();

Trusted by thousands of developers

See what our customers say about using Browserless for document generation.

Browserless is a great browser-as-a-service tool that just works. We use it as a micro-service that renders thousands of dashboards per day as image of PDF and are very happy with the stability and performance.
IF

Ian Formanek

CEO, Cluvio

Cluvio
Browserless has enabled us to generate thousands of high quality PDFs at large scale. Having multiple Chrome instances running as a service means we spend far less time tweaking templates than we would do with any other HTML to PDF library.
DE

Daniel Edwards

Software Engineer, Commify

Commify

Ready to try the benefits of Browserless?