> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chromiumly.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Chromium overview

> Convert URLs, HTML, and Markdown to PDF or capture them as screenshots using Gotenberg's Chromium routes.

Chromiumly wraps Gotenberg’s [Chromium conversion routes](https://gotenberg.dev/docs/8.x/convert-with-chromium/convert-url-to-pdf) and [Chromium screenshot routes](https://gotenberg.dev/docs/8.x/convert-with-chromium/screenshot-url). Conversion works by simulating browser navigation (URL route) or rendering files you send (HTML/Markdown routes): Chromium loads the page, runs JavaScript, loads CSS and assets, then captures the DOM as PDF. Inputs can be a file path, a `Buffer`, or a `ReadStream`. For server configuration and limits, see [Gotenberg’s Chromium docs](https://gotenberg.dev/docs/8.x/convert-with-chromium/convert-url-to-pdf).

## Converters (to PDF)

| Class | Input | Method |
| - | - | - |
| `UrlConverter` | URL string | `convert({ url })` |
| `HtmlConverter` | HTML file (e.g. `index.html`) | `convert({ html })` |
| `MarkdownConverter` | HTML + Markdown files | `convert({ html, markdown })` |

Each `convert()` returns a `Buffer` containing the PDF. Pass [page properties](https://docs.chromiumly.dev/v6/chromium/options.md) (size, margins, landscape, etc.) and options like headers, wait conditions, and PDF encryption.

## Screenshots (to PNG/JPEG/WebP)

| Class | Input | Method |
| - | - | - |
| `UrlScreenshot` | URL string | `capture({ url })` |
| `HtmlScreenshot` | HTML file | `capture({ html })` |
| `MarkdownScreenshot` | HTML + Markdown files | `capture({ html, markdown })` |

Each `capture()` returns a `Buffer` (image). Set format, quality, dimensions, and similar options via [screenshot options](https://docs.chromiumly.dev/v6/chromium/options.md).

## Next pages

* [URL](https://docs.chromiumly.dev/v6/chromium/url.md) — convert a URL to PDF or capture a screenshot
* [HTML](https://docs.chromiumly.dev/v6/chromium/html.md) — convert or capture from an HTML file
* [Markdown](https://docs.chromiumly.dev/v6/chromium/markdown.md) — convert or capture from HTML + Markdown
* [Options](https://docs.chromiumly.dev/v6/chromium/options.md) — page properties, conversion options, and screenshot options


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.