---
title: "Returns the file dimensions for all pages in a chapter. If the underlying chapter is PDF, use extractPDF to unpack as images."
method: GET
path: "/api/Reader/file-dimensions"
tags: ["Reader"]
---

# Returns the file dimensions for all pages in a chapter. If the underlying chapter is PDF, use extractPDF to unpack as images.

`GET /api/Reader/file-dimensions`

## Request

- Base URL: `http://localhost:5000`
- URL: `http://localhost:5000/api/Reader/file-dimensions`
- Auth: API key in header `x-api-key`

This has a side effect of caching the images.
            This will only be populated on archive filetypes and not in bookmark mode

## Query parameters

- `chapterId` integer
- `extractPdf` boolean

## Response `200`

OK

- FileDimensionDto[]
  - `width` integer
  - `height` integer
  - `pageNumber` integer
  - `fileName` string, nullable
  - `isWide` boolean

---

[API](https://skmtc.dev/kareadita/apis/kavita.md) - [All operations](https://skmtc.dev/kareadita/apis/kavita/llms.txt) - [OpenAPI document](https://skmtc.dev/kareadita/apis/kavita/revisions/d266465eeb67?raw)
