---
title: "CGPDFArrayGetCount(_:)"
framework: coregraphics
role: symbol
role_heading: Function
path: "coregraphics/cgpdfarraygetcount(_:)"
---

# CGPDFArrayGetCount(_:)

Returns the number of items in a PDF array.

## Declaration

```swift
func CGPDFArrayGetCount(_ array: CGPDFArrayRef) -> Int
```

## Parameters

- `array`: A PDF array. If this parameter is not a valid PDF array, the behavior is undefined.

## Return Value

Return Value Returns the number of items in the array.

## See Also

### Getting Data from a PDF Array

- [CGPDFArrayGetArray(_:_:_:)](coregraphics/cgpdfarraygetarray(_:_:_:).md)
- [CGPDFArrayGetBoolean(_:_:_:)](coregraphics/cgpdfarraygetboolean(_:_:_:).md)
- [CGPDFArrayGetDictionary(_:_:_:)](coregraphics/cgpdfarraygetdictionary(_:_:_:).md)
- [CGPDFArrayGetInteger(_:_:_:)](coregraphics/cgpdfarraygetinteger(_:_:_:).md)
- [CGPDFArrayGetName(_:_:_:)](coregraphics/cgpdfarraygetname(_:_:_:).md)
- [CGPDFArrayGetNull(_:_:)](coregraphics/cgpdfarraygetnull(_:_:).md)
- [CGPDFArrayGetNumber(_:_:_:)](coregraphics/cgpdfarraygetnumber(_:_:_:).md)
- [CGPDFArrayGetObject(_:_:_:)](coregraphics/cgpdfarraygetobject(_:_:_:).md)
- [CGPDFArrayGetStream(_:_:_:)](coregraphics/cgpdfarraygetstream(_:_:_:).md)
- [CGPDFArrayGetString(_:_:_:)](coregraphics/cgpdfarraygetstring(_:_:_:).md)
