---
title: "Generate Photo Grid PDF"
method: POST
path: "/Pdf/PhotoGrid"
tags: ["Pdf"]
---

# Generate Photo Grid PDF

`POST /Pdf/PhotoGrid`

**Requires permissions:** *AcademicStaff* or *AcademicSupport* or *StudentFacing*

Resolves each person's photo from Microsoft Graph (by email) and renders a branded grid to a PDF in-house (QuestPDF), returning the bytes. Used by the advanced-search results 'Export to photo grid' action.

## Request body

- PostPhotoGridPdfRequest
  - `title` string, nullable
  - `objectType` string, nullable
  - `people` PostPhotoGridPdfGridPerson[]
    - `email` string, nullable
    - `label` string, nullable
    - `captions` string[]

## Response `200`

Success - PDF bytes (application/pdf)

## Other responses

- `204` — No Content
- `400` — An error occurred generating the PDF
- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/tonbridge/apis/tonbridge-app-api.md) · [All operations](https://skmtc.net/tonbridge/apis/tonbridge-app-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tonbridge/tonbridge-app-api/versions/28344aa564b4/schema)
