---
title: "CGPDFStreamGetDictionary(_:)"
framework: coregraphics
role: symbol
role_heading: Function
path: "coregraphics/cgpdfstreamgetdictionary(_:)"
---

# CGPDFStreamGetDictionary(_:)

Returns the dictionary associated with a PDF stream.

## Declaration

```swift
func CGPDFStreamGetDictionary(_ stream: CGPDFStreamRef) -> CGPDFDictionaryRef?
```

## Parameters

- `stream`: A PDF stream.

## Return Value

Return Value The PDF dictionary for the specified stream.

## See Also

### Getting Data from a PDF Stream

- [CGPDFStreamCopyData(_:_:)](coregraphics/cgpdfstreamcopydata(_:_:).md)
