---
title: "Upload Pdf"
method: POST
path: "/image/upload-pdf"
tags: ["image"]
---

# Upload Pdf

`POST /image/upload-pdf`

Accepts a base64-encoded PDF in JSON format,
converts its pages to JPEG images (limited to the first 20 pages if longer),
uploads each page to S3,
and returns a list of public image URLs.

Works for both web and mobile platforms.

## Request body

- Base64PDFUploadRequest
  - `file_content` string, required
  - `file_name` string, required
  - `content_type` string

## Response `200`

Successful Response

- PDFUploadResponse
  - `status` string, required
  - `message` string, required
  - `image_urls` string[], required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/8d495ed916c6/schema)
