---
canonical: 'https://htmlcsstoimage.com/features/html-to-pdf-for-education'
title: 'HTML to PDF API for Education | HTML/CSS to Image'
description: 'Generate certificates, worksheets, course materials, progress reports, and personalized student PDFs from HTML with a browser-based PDF API.'
---

# Generate certificates and course PDFs

Use reusable HTML layouts to create personalized certificates, worksheets, progress reports, and printable course materials from student data.

## Key capabilities

- Personalized certificates
- Printable course materials
- PDFs from student data

## 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/).

## Create student and course documents automatically

### Certificates and awards

Merge learner names, programs, dates, and achievements into a reusable certificate layout.

### Progress reports

Convert student data and visual summaries into PDF reports for families and staff.

### Course materials

Publish lessons, worksheets, and reference content as downloadable PDFs from reusable HTML layouts.

### Enrollment documents

Generate individual schedules, confirmations, and program information from enrollment data.

## 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-education)
- [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/)
