---
title: CGPDFStream
framework: coregraphics
role: collectionGroup
role_heading: API Collection
path: coregraphics/cgpdfstream
---

# CGPDFStream

A stream or sequence of data bytes in a PDF document.

## Overview

Overview A PDF stream  consists  of a dictionary that describes a sequence of bytes. Streams typically represent objects with potentially large amounts of data, such as images and page descriptions. This object is not derived from CFType and therefore there are no functions for retaining and releasing it.

## Topics

### Getting Data from a PDF Stream

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

### Data Types

- [CGPDFStreamRef](coregraphics/cgpdfstreamref.md)

### Constants

- [CGPDFDataFormat](coregraphics/cgpdfdataformat.md)

## See Also

### Related Documentation

- [Quartz 2D Programming Guide](apple-archive/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/Introduction.md)
