---
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`

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.net/kareadita/apis/kavita.md) · [All operations](https://skmtc.net/kareadita/apis/kavita/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kareadita/kavita/versions/a092f0284f3e/schema)
