---
canonical: 'https://htmlcsstoimage.com/features/html-to-pdf-for-marketing'
title: 'HTML to PDF API for Marketing | HTML/CSS to Image'
description: 'Generate branded campaign reports, one-pagers, lead magnets, and personalized marketing PDFs from HTML and campaign data.'
---

# Generate campaign PDFs from reusable layouts

Use your existing web styles to generate campaign reports, one-pagers, lead magnets, and personalized sales collateral from changing data.

## Key capabilities

- Campaign reports
- Lead magnets and one-pagers
- Personalized PDF collateral

## How the HTML to PDF API works

Send HTML and CSS to `POST https://hcti.io/v1/image` with `pdf_options`. HTML/CSS to Image (HCTI) renders it in Chromium, so JavaScript, web fonts, charts, and browser-supported layouts work in the generated PDF without a separate document renderer.

## Control the PDF layout

Set the PDF page width, height, scale, print backgrounds, and each margin in the same API request.

```json
{
  "pdf_options": {
    "page_width": "8.5in",
    "page_height": "11in",
    "margins": ["0.4in", "0.4in", "0.4in", "0.4in"],
    "print_background": true
  }
}
```

PDF output is available on supported plans. Check [pricing](https://htmlcsstoimage.com/pricing.md) for current availability.

## MCP Integration

Connect an MCP-compatible client to `https://mcp.hcti.io` with OAuth. The tools use the connected organization's HTML/CSS to Image account, permissions, and plan limits.

- The `create_image` tool accepts HTML and CSS with `pdf_options` and returns the generated PDF URL. Use it to create reports, invoices, certificates, and other documents.

[Read the full MCP docs](https://docs.htmlcsstoimage.com/integrations/mcp/).

## Automate the PDFs marketing sends and publishes

### Campaign reports

Package current results, charts, and commentary into a branded PDF for clients and stakeholders.

### Lead magnets

Convert reusable HTML content into downloadable ebooks, checklists, and resources.

### Sales collateral

Generate one-pagers and personalized materials from CRM or campaign data.

### Campaign records

Store the final version of approved campaign content as a PDF for review and reference.

## Get started

REST API requests require an HTML/CSS to Image account and should be authenticated from trusted application code. Check the API docs and pricing for current setup instructions, limits, and feature availability.

- [View the full feature page](https://htmlcsstoimage.com/features/html-to-pdf-for-marketing)
- [Browse all features](https://htmlcsstoimage.com/features.md)
- [Start free](https://htmlcsstoimage.com/join)
- [View pricing](https://htmlcsstoimage.com/pricing.md)
- [Read the PDF docs](https://docs.htmlcsstoimage.com/parameters/pdf_options/)
- [Read the MCP docs](https://docs.htmlcsstoimage.com/integrations/mcp/)
