---
title: "init(dictionary:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uiprintinfo/init(dictionary:)"
---

# init(dictionary:)

Returns a print-information object that is initialized with the data in the passed-in dictionary.

## Declaration

```swift
init(dictionary: [AnyHashable : Any]?)
```

## Parameters

- `dictionary`: A dictionary that contains data to initialize the UIPrintInfo object with.

## Return Value

Return Value An instance of UIPrintInfo or nil if the object could not be created.

## Discussion

Discussion You use the dictionary parameter to initialize a UIPrintInfo object with stored print-job information.  Some applications might archive a previous UIPrintInfo object and use that for a future print job with this method. You can later access the dictionary by calling the dictionaryRepresentation method on the UIPrintInfo object.

## See Also

### Creating a print info object

- [printInfo()](uikit/uiprintinfo/printinfo().md)
- [dictionaryRepresentation](uikit/uiprintinfo/dictionaryrepresentation.md)
- [init(coder:)](uikit/uiprintinfo/init(coder:).md)
