---
title: CGPDFString
framework: coregraphics
role: collectionGroup
role_heading: API Collection
path: coregraphics/cgpdfstring
---

# CGPDFString

A text string in a PDF document.

## Overview

Overview A PDF string object is a series of bytes—unsigned integer values in the range 0 to 255. The string elements are not integer objects, but are stored in a more compact format. For more information on the representation of strings in PDF, see the latest version of PDF Reference, Adobe Systems Incorporated. This object is not derived from CFType and therefore there are no functions for retaining and releasing it. CGPDFString objects exist as constituent parts of a CGPDFDocument object, and are managed by their container.

## Topics

### Converting PDF Strings

- [CGPDFStringCopyTextString(_:)](coregraphics/cgpdfstringcopytextstring(_:).md)
- [CGPDFStringCopyDate(_:)](coregraphics/cgpdfstringcopydate(_:).md)

### Getting PDF String Data

- [CGPDFStringGetBytePtr(_:)](coregraphics/cgpdfstringgetbyteptr(_:).md)
- [CGPDFStringGetLength(_:)](coregraphics/cgpdfstringgetlength(_:).md)

### Data Types

- [CGPDFStringRef](coregraphics/cgpdfstringref.md)

## See Also

### Related Documentation

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