<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.3.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGPDFStringCopyTextString(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@F@CGPDFStringCopyTextString"
  },
  "title" : "CGPDFStringCopyTextString(_:)"
}
-->

# CGPDFStringCopyTextString(_:)

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

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

## Parameters

`string`

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

## Return Value

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

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)