---
title: "CGPDFDictionaryGetCount(_:)"
framework: coregraphics
role: symbol
role_heading: Function
path: "coregraphics/cgpdfdictionarygetcount(_:)"
---

# CGPDFDictionaryGetCount(_:)

Returns the number of entries in a PDF dictionary.

## Declaration

```swift
func CGPDFDictionaryGetCount(_ dict: CGPDFDictionaryRef) -> Int
```

## Parameters

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

## Return Value

Return Value Returns the number of entries in the dictionary.

## See Also

### Getting Data from a Dictionary

- [CGPDFDictionaryGetArray(_:_:_:)](coregraphics/cgpdfdictionarygetarray(_:_:_:).md)
- [CGPDFDictionaryGetBoolean(_:_:_:)](coregraphics/cgpdfdictionarygetboolean(_:_:_:).md)
- [CGPDFDictionaryGetDictionary(_:_:_:)](coregraphics/cgpdfdictionarygetdictionary(_:_:_:).md)
- [CGPDFDictionaryGetInteger(_:_:_:)](coregraphics/cgpdfdictionarygetinteger(_:_:_:).md)
- [CGPDFDictionaryGetName(_:_:_:)](coregraphics/cgpdfdictionarygetname(_:_:_:).md)
- [CGPDFDictionaryGetNumber(_:_:_:)](coregraphics/cgpdfdictionarygetnumber(_:_:_:).md)
- [CGPDFDictionaryGetObject(_:_:_:)](coregraphics/cgpdfdictionarygetobject(_:_:_:).md)
- [CGPDFDictionaryGetStream(_:_:_:)](coregraphics/cgpdfdictionarygetstream(_:_:_:).md)
- [CGPDFDictionaryGetString(_:_:_:)](coregraphics/cgpdfdictionarygetstring(_:_:_:).md)
