# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Gotenberg
spec:
    description: |
        Gotenberg is a Docker-powered stateless API for converting HTML, Markdown, Word, Excel, and more into PDF using Chromium and LibreOffice. Supports merging, screenshots, and webhook callbacks.
    coverImage: https://user-images.githubusercontent.com/8983173/130322857-185831e2-f041-46eb-a17f-0a69d066c4e5.png
    icon: https://gotenberg.dev/img/logo.png
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access Gotenberg API
    tags:
        - Tool
        - Development
    readme: |
        # Gotenberg

        A Docker-powered stateless API for PDF generation. Convert HTML, Markdown, Office documents, and more into PDF using Chromium and LibreOffice engines.

        ## What You Can Do After Deployment

        1. **Convert HTML to PDF** — send HTML content or a URL and receive a PDF file
        2. **Convert Office documents** — transform Word, Excel, PowerPoint files into PDF via LibreOffice
        3. **Merge PDFs** — combine multiple PDF files into a single document
        4. **Take screenshots** — capture web pages as PNG or JPEG images
        5. **Use webhooks** — receive conversion results asynchronously via callback URLs

        ## Key Features

        - Chromium engine for HTML, Markdown, and URL to PDF conversion
        - LibreOffice engine for Office document conversion (Word, Excel, PowerPoint, ODT, ODS, etc.)
        - PDF merging and manipulation
        - Screenshot capture (PNG, JPEG)
        - Webhook support for async processing
        - Health check endpoint at `/health`
        - Horizontal scaling — fully stateless, no storage needed
        - Configurable timeouts, page size, margins, and print options

        ## License

        MIT — [GitHub](https://github.com/gotenberg/gotenberg)
    services:
        - name: gotenberg
          icon: https://gotenberg.dev/img/logo.png
          template: PREBUILT_V2
          spec:
            source:
                image: gotenberg/gotenberg:8.29.0
            ports:
                - id: web
                  port: 3000
                  type: HTTP
            env:
                GOTENBERG_API_TIMEOUT:
                    default: 300s
                GOTENBERG_CHROMIUM_ALLOW_LIST:
                    default: .*
            healthCheck:
                type: HTTP
                port: web
                http:
                    path: /health
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            Gotenberg es una API sin estado basada en Docker que convierte HTML, Markdown, Word, Excel y más a PDF usando Chromium y LibreOffice. Soporta fusión, capturas y webhooks.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a la API de Gotenberg
        readme: |
            # Gotenberg

            API sin estado basada en Docker para generar PDF. Convierte HTML, Markdown, documentos de Office y más usando los motores Chromium y LibreOffice.

            ## Qué puedes hacer después del despliegue

            1. **Convertir HTML a PDF** — envía contenido HTML o una URL y recibe un archivo PDF
            2. **Convertir documentos Office** — transforma Word, Excel, PowerPoint a PDF con LibreOffice
            3. **Fusionar PDFs** — combina múltiples archivos PDF en un solo documento
            4. **Capturas de pantalla** — captura páginas web como imágenes PNG o JPEG
            5. **Webhooks** — recibe resultados de conversión de forma asíncrona mediante URLs de callback

            ## Licencia

            MIT — [GitHub](https://github.com/gotenberg/gotenberg)
    id-ID:
        description: |
            Gotenberg adalah API stateless berbasis Docker yang mengonversi HTML, Markdown, Word, Excel, dan lainnya ke PDF menggunakan Chromium dan LibreOffice. Mendukung penggabungan, tangkapan layar, dan webhook.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses API Gotenberg
        readme: |
            # Gotenberg

            API stateless berbasis Docker untuk pembuatan PDF. Mengonversi HTML, Markdown, dokumen Office, dan lainnya menggunakan mesin Chromium dan LibreOffice.

            ## Apa yang bisa dilakukan setelah deploy

            1. **Konversi HTML ke PDF** — kirim konten HTML atau URL dan dapatkan file PDF
            2. **Konversi dokumen Office** — ubah Word, Excel, PowerPoint ke PDF dengan LibreOffice
            3. **Gabungkan PDF** — satukan beberapa file PDF menjadi satu dokumen
            4. **Tangkapan layar** — tangkap halaman web sebagai gambar PNG atau JPEG
            5. **Webhook** — terima hasil konversi secara asinkron melalui URL callback

            ## Lisensi

            MIT — [GitHub](https://github.com/gotenberg/gotenberg)
    ja-JP:
        description: |
            Gotenberg は Docker ベースのステートレス API で、Chromium と LibreOffice を使用して HTML、Markdown、Word、Excel などを PDF に変換します。結合、スクリーンショット、Webhook に対応。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: Gotenberg API にアクセスするためのドメイン
        readme: |
            # Gotenberg

            Docker ベースのステートレス PDF 生成 API。Chromium と LibreOffice エンジンで HTML、Markdown、Office ドキュメントなどを PDF に変換。

            ## デプロイ後にできること

            1. **HTML を PDF に変換** — HTML コンテンツや URL を送信して PDF を取得
            2. **Office ドキュメント変換** — LibreOffice で Word、Excel、PowerPoint を PDF に変換
            3. **PDF の結合** — 複数の PDF を1つのドキュメントに統合
            4. **スクリーンショット** — Web ページを PNG または JPEG で撮影
            5. **Webhook 対応** — コールバック URL で変換結果を非同期に受信

            ## ライセンス

            MIT — [GitHub](https://github.com/gotenberg/gotenberg)
    ko-KR:
        description: |
            Gotenberg은 Docker 기반의 스테이트리스 API로, Chromium과 LibreOffice를 사용하여 HTML, Markdown, Word, Excel 등을 PDF로 변환합니다. 병합, 스크린샷, Webhook을 지원합니다.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: Gotenberg API에 접속할 도메인
        readme: |
            # Gotenberg

            Docker 기반의 스테이트리스 PDF 생성 API. Chromium과 LibreOffice 엔진으로 HTML, Markdown, Office 문서 등을 PDF로 변환합니다.

            ## 배포 후 할 수 있는 것

            1. **HTML을 PDF로 변환** — HTML 콘텐츠 또는 URL을 보내 PDF 파일을 받기
            2. **Office 문서 변환** — LibreOffice로 Word, Excel, PowerPoint를 PDF로 변환
            3. **PDF 병합** — 여러 PDF 파일을 하나의 문서로 통합
            4. **스크린샷** — 웹 페이지를 PNG 또는 JPEG로 캡처
            5. **Webhook 지원** — 콜백 URL로 변환 결과를 비동기 수신

            ## 라이선스

            MIT — [GitHub](https://github.com/gotenberg/gotenberg)
    th-TH:
        description: |
            Gotenberg เป็น API แบบ stateless ที่ใช้ Docker แปลง HTML, Markdown, Word, Excel และอื่น ๆ เป็น PDF โดยใช้ Chromium และ LibreOffice รองรับการรวมไฟล์ สกรีนช็อต และ Webhook
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง Gotenberg API
        readme: |
            # Gotenberg

            API แบบ stateless ที่ใช้ Docker สำหรับสร้าง PDF แปลง HTML, Markdown, เอกสาร Office และอื่น ๆ ด้วยเครื่องมือ Chromium และ LibreOffice

            ## สิ่งที่ทำได้หลังจากติดตั้ง

            1. **แปลง HTML เป็น PDF** — ส่งเนื้อหา HTML หรือ URL แล้วรับไฟล์ PDF
            2. **แปลงเอกสาร Office** — แปลง Word, Excel, PowerPoint เป็น PDF ด้วย LibreOffice
            3. **รวม PDF** — รวมหลายไฟล์ PDF เป็นเอกสารเดียว
            4. **สกรีนช็อต** — จับภาพหน้าเว็บเป็น PNG หรือ JPEG
            5. **Webhook** — รับผลการแปลงแบบอะซิงโครนัสผ่าน URL callback

            ## สัญญาอนุญาต

            MIT — [GitHub](https://github.com/gotenberg/gotenberg)
    zh-CN:
        description: |
            Gotenberg 是 Docker 驱动的无状态 API，使用 Chromium 和 LibreOffice 将 HTML、Markdown、Word、Excel 等转换为 PDF。支持合并、截图和 Webhook 回调。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 Gotenberg API 的域名
        readme: |
            # Gotenberg

            Docker 驱动的无状态 PDF 生成 API。使用 Chromium 和 LibreOffice 引擎，将 HTML、Markdown、Office 文档等转换为 PDF。

            ## 部署后可以做什么

            1. **HTML 转 PDF** — 发送 HTML 内容或 URL，即可获取 PDF 文件
            2. **Office 文档转换** — 通过 LibreOffice 将 Word、Excel、PowerPoint 转为 PDF
            3. **合并 PDF** — 将多个 PDF 文件合并为单一文档
            4. **网页截图** — 将网页截取为 PNG 或 JPEG 图片
            5. **Webhook 支持** — 通过回调 URL 异步接收转换结果

            ## 授权

            MIT — [GitHub](https://github.com/gotenberg/gotenberg)
    zh-TW:
        description: |
            Gotenberg 是 Docker 驅動的無狀態 API，使用 Chromium 和 LibreOffice 將 HTML、Markdown、Word、Excel 等轉換為 PDF。支援合併、截圖和 Webhook 回調。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 Gotenberg API 的網域
        readme: |
            # Gotenberg

            Docker 驅動的無狀態 PDF 生成 API。使用 Chromium 和 LibreOffice 引擎，將 HTML、Markdown、Office 文件等轉換為 PDF。

            ## 部署後可以做什麼

            1. **HTML 轉 PDF** — 傳送 HTML 內容或 URL，即可取得 PDF 檔案
            2. **Office 文件轉換** — 透過 LibreOffice 將 Word、Excel、PowerPoint 轉為 PDF
            3. **合併 PDF** — 將多個 PDF 檔案合併為單一文件
            4. **網頁截圖** — 將網頁擷取為 PNG 或 JPEG 圖片
            5. **Webhook 支援** — 透過回調 URL 非同步接收轉換結果

            ## 授權

            MIT — [GitHub](https://github.com/gotenberg/gotenberg)
