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

# Document Operations

> PDF processing, document conversion, screenshots

## split\_pdf

Split a PDF into individual pages or page ranges.

```json theme={null}
{ "type": "document_split-pdf", "params": { "pages": "1-3,5,8-10" } }
```

## merge\_pdf

Merge multiple PDFs into one. Use an array of URLs as input.

```json theme={null}
{
  "input": ["https://example.com/doc1.pdf", "https://example.com/doc2.pdf"],
  "operations": [{ "type": "document_merge-pdf" }]
}
```

## compress\_pdf

Compress a PDF to reduce file size.

```json theme={null}
{ "type": "document_compress-pdf", "params": { "quality": "screen" } }
```

| Quality  | Description                |
| -------- | -------------------------- |
| screen   | Lowest size, 72 DPI images |
| ebook    | Medium, 150 DPI            |
| printer  | High, 300 DPI              |
| prepress | Highest quality            |

## pdf\_watermark

Add a text watermark to PDF pages.

```json theme={null}
{ "type": "document_pdf-watermark", "params": { "text": "CONFIDENTIAL", "opacity": 0.3 } }
```

## pdf\_protect

Add password protection to a PDF.

```json theme={null}
{ "type": "document_pdf-protect", "params": { "password": "secret123" } }
```

## pdf\_metadata

Read or modify PDF metadata (title, author, subject).

```json theme={null}
{ "type": "document_pdf-metadata" }
```

## doc\_to\_pdf

Convert DOCX, XLSX, or PPTX to PDF.

```json theme={null}
{ "type": "document_doc-to-pdf" }
```

Supported input formats: .docx, .xlsx, .pptx, .odt, .ods, .odp

## html\_to\_pdf

Convert HTML content to PDF.

```json theme={null}
{ "type": "document_html-to-pdf", "params": { "page_size": "A4", "margin": "1cm" } }
```

## url\_to\_pdf

Convert a web page URL to PDF.

```json theme={null}
{ "type": "document_url-to-pdf", "params": { "url": "https://example.com", "page_size": "A4" } }
```

## url\_screenshot

Capture a screenshot of a web page.

```json theme={null}
{ "type": "document_url-screenshot", "params": { "url": "https://example.com", "width": 1280, "format": "png" } }
```
