---
title: pageCount
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfdocument/pagecount
---

# pageCount

The number of pages in the document.

## Declaration

```swift
var pageCount: Int { get }
```

## See Also

### Working with Pages

- [page(at:)](pdfkit/pdfdocument/page(at:).md)
- [index(for:)](pdfkit/pdfdocument/index(for:).md)
- [insert(_:at:)](pdfkit/pdfdocument/insert(_:at:).md)
- [removePage(at:)](pdfkit/pdfdocument/removepage(at:).md)
- [exchangePage(at:withPageAt:)](pdfkit/pdfdocument/exchangepage(at:withpageat:).md)
- [pageClass](pdfkit/pdfdocument/pageclass.md)
