---
name: PDF Document Generator
description: Generate styled PDF documents from structured content via the Nexus content job API
---

# PDF Document Generator

Generate professional PDF documents from Markdown or structured content. Supports multiple document types with appropriate layouts and styling.

## Usage

Submit a content job via `POST /api/companies/{companyId}/content-jobs`:

```json
{
  "jobType": "pdf-document",
  "input": {
    "content": "# Q1 Report\n\nRevenue grew 24% year-over-year...",
    "docType": "report"
  }
}
```

**Fields:**
- `content` (required): Document body as Markdown or plain text
- `docType` (optional): Layout template — `report`, `invoice`, `api-docs`, `one-pager` (default: `report`)

## Output

The job returns a `PdfBundle` with:
- `assetId`: ID of the stored PDF asset
- `pageCount`: Number of pages in the output
- `docType`: Document type template applied
