---
title: "Retrieve document content as PDF"
method: GET
path: "/api/document/{id}/tex"
tags: ["documents"]
---

# Retrieve document content as PDF

`GET /api/document/{id}/tex`

Retrieve whole document transformed via ODD and LaTeX

## Path parameters

- `id` string, required

## Query parameters

- `source` boolean

## Response `200`

Returns a PDF

## Other responses

- `400` — LaTeX processing failed
- `404` — Document not found
- `500` — Internal server error

## Changes

- **2021-01-18** `f1fee000fb53` — 2 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
- **2020-10-14** `b70359972942` — 2 info
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `500`

[Change history](https://skmtc.dev/eeditiones/apis/tei-publisher-documentation-and-demo/changes/api/document/:id/tex/get.md)

---

[API](https://skmtc.dev/eeditiones/apis/tei-publisher-documentation-and-demo.md) · [All operations](https://skmtc.dev/eeditiones/apis/tei-publisher-documentation-and-demo/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eeditiones/tei-publisher-documentation-and-demo/revisions/07216792837f/schema)
