---
title: "Generate a print preview using Paged Media CSS"
method: GET
path: "/print/{docid}"
tags: ["view"]
---

# Generate a print preview using Paged Media CSS

`GET /print/{docid}`

## Request

- Base URL: `/exist/apps/tei-publisher` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/exist/apps/tei-publisher/print/{docid}`
- Auth: one of:
  - API key in cookie `teipublisher.com.login`
  - HTTP basic

## Path parameters

- `docid` string, required

## Query parameters

- `template` string
- `odd` string

## Response `200`

HTML view for the document

## Other responses

- `404`: The document was not found
- `500`: An error occurred

## Changes

- **2023-03-15** `8738c0e9ace0`: 1 info
  - endpoint added
- **2023-03-15** `10c2a72beb4d`: 1 breaking
  - api path removed without deprecation
- **2023-03-15** `dbe9e4ffa3c3`: 1 info
  - endpoint added
- **2023-03-15** `2cadf0583a92`: 1 breaking
  - api path removed without deprecation
- **2023-02-12** `a63c16623f75`: 2 warning
  - deleted the `query` request parameter `action`
  - deleted the `query` request parameter `view`

[Operation history](https://skmtc.dev/eeditiones/apis/tei-publisher-documentation-and-demo/changes/print/:docid/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.dev/eeditiones/apis/tei-publisher-documentation-and-demo/revisions/07216792837f?raw)
