---
title: "Generate Student Exam Pdf"
method: POST
path: "/student-exams/{exam_id}/generate-latex-pdf"
tags: ["student-exams"]
---

# Generate Student Exam Pdf

`POST /student-exams/{exam_id}/generate-latex-pdf`

## Request

- Base URL: `https://api.excellence-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.excellence-ai.com/student-exams/{exam_id}/generate-latex-pdf`
- Auth: OAuth 2 (password, token URL `api/login`)

Generate a PDF for the given `field` of a student exam.
Now uses structured PDF generation when available, with fallback to legacy method.

## Path parameters

- `exam_id` string, required

## Request body

- GeneratePdfRequest
  - `field` string, required

## Response `200`

Successful Response

- unknown

## 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.dev/excellence-ai/apis/excellence-learning/revisions/379e4a57dee8?raw)
