---
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`

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/86793aa823ea?raw)
