---
title: Deploy Gotenberg with AI on Blossom
url: "/deploy/gotenberg/"
canonical_url: https://blossom88.com/deploy/gotenberg/
markdown_url: https://blossom88.com/deploy/gotenberg.md
summary: Convert an HTML file and its stylesheet to a PDF with a private Gotenberg
  API on Blossom.
categories:
- deployment
- pdf
- developer-tools
stack:
- Go
- Chromium
- HTML
- CSS
---

# Deploy Gotenberg with AI on Blossom

[Gotenberg](https://gotenberg.dev/) converts HTML and documents to PDF
through an API. This recipe sends an HTML report and stylesheet and gets
a PDF back in the same request.

![A sample release report rendered to PDF by Gotenberg.](/deploy/assets/images/gotenberg/release-report.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy Gotenberg on Blossom and help me turn an HTML report into a PDF.
>
> Follow this guide: https://blossom88.com/deploy/gotenberg/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and choose a Blossom Cloud Location when you log in. You can also use [Blossom BYOC (bring your own cloud)](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#blossom-byoc).

## Convert Your First Report

Send the [sample HTML](/deploy/recipes/gotenberg/index.html) and
[stylesheet](/deploy/recipes/gotenberg/style.css) in one request.
Gotenberg returns a PDF you can save in your application.

<details class="optional-reading" markdown="1">
<summary>Deployment details</summary>

Use the [official MIT-licensed image](https://github.com/gotenberg/gotenberg)
on App Capacity. The renderer needs no database or Volume. Keep it
internal for calls from your backend, or use Blossom Account access and
[Gotenberg authentication](https://gotenberg.dev/docs/operate/secure)
for a protected HTTPS endpoint. This recipe uploads local files and
disables JavaScript, remote downloads, and webhooks.

    blossom service:create --data gotenberg.yml
    blossom env_var:push --environment environment-100 --file .env.runtime
    blossom environment:deploy --id environment-100 --follow

See the [HTML conversion API](https://gotenberg.dev/docs/chromium/convert-html)
for multipart upload examples.

</details>

## What You Get

- An authenticated API for converting HTML into PDFs
- A downloadable sample report rendered with its own stylesheet
