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

# CGPDFContentStreamGetResource(_:_:_:)

Gets the specified resource from a PDF content stream object.

```
func CGPDFContentStreamGetResource(_ cs: CGPDFContentStreamRef, _ category: UnsafePointer<CChar>, _ name: UnsafePointer<CChar>) -> CGPDFObjectRef?
```

## Parameters

`cs`

A PDF content stream object.

`category`

A string that specifies the category of the resource you want to obtain.

`name`

A string that specifies the name of the resource you want to obtain.

## Return Value

The resource dictionary.

## Discussion

You can use this function to obtain resources used by the content stream, such as forms, patterns, color spaces, and fonts.

---

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)