<!--
{
  "availability" : [
    "macOS: 10.0.0 - 14.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSEPSImageRep/init(data:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSEPSImageRep(im)initWithData:"
  },
  "title" : "init(data:)"
}
-->

# init(data:)

Returns a representation of an image initialized with the specified EPS data.

```
init?(data epsData: Data)
```

## Parameters

`epsData`

The EPS data representing the desired image.

## Return Value

The initialized `NSEPSImageRep` object or `nil` if the object could not be initialized

## Discussion

The size of the receiver is set using the bounding box information specified in the EPS header comments.

---

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)