---
title: "CGPDFStringCopyTextString(_:)"
framework: coregraphics
role: symbol
role_heading: Function
path: "coregraphics/cgpdfstringcopytextstring(_:)"
---

# CGPDFStringCopyTextString(_:)

Returns a CFString object that represents a PDF string as a text string.

## Declaration

```swift
func CGPDFStringCopyTextString(_ string: CGPDFStringRef) -> CFString?
```

## Parameters

- `string`: A PDF string. If this value is NULL, it will cause an error.

## Return Value

Return Value Returns a CFString object that represents the specified PDF string as a text string. You are responsible for releasing this object.

## See Also

### Converting PDF Strings

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