---
title: "init(data:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nsepsimagerep/init(data:)"
---

# init(data:)

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

## Declaration

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

## Parameters

- `epsData`: The EPS data representing the desired image.

## Return Value

Return Value The initialized NSEPSImageRep object or nil if the object could not be initialized

## Discussion

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