---
title: "Update Exam Pdf Options"
method: PUT
path: "/teacher-exams/{exam_id}/latex/pdf-options"
tags: ["Teacher Exams LaTeX"]
---

# Update Exam Pdf Options

`PUT /teacher-exams/{exam_id}/latex/pdf-options`

Update PDF formatting options for a specific exam and automatically save as teacher preferences.

Note: Teacher global preferences are only updated if the teacher is the actual owner of the exam,
not when accessing a shared exam. This prevents contamination of personal preferences with shared exam settings.

A finished school year does not close this one: the layout describes the
printout the teacher is making today, not what the class was given that
year. The sujet, the corrigé, the titre and the niveau stay frozen.

## Path parameters

- `exam_id` string, required

## Request body

- PDFOptionsUpdate
  - `teacher_name` string, nullable
  - `date` string, nullable
  - `school_logo_url` string, nullable
  - `class_name` string, nullable
  - `title_override` string, nullable
  - `duration` string, nullable
  - `general_instructions` string, nullable
  - `template` string, nullable
  - `font_family` string, nullable
  - `font_size` number, nullable
  - `line_spacing` number, nullable
  - `include_header` boolean, nullable
  - `auto_save_preferences` boolean, nullable

## 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/c81ed506912f?raw)
