<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIPDF417CodeDescriptor/init(payload:isCompact:rowCount:columnCount:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIPDF417CodeDescriptor(im)initWithPayload:isCompact:rowCount:columnCount:"
  },
  "title" : "init(payload:isCompact:rowCount:columnCount:)"
}
-->

# init(payload:isCompact:rowCount:columnCount:)

Initializes an PDF417 code descriptor for the given payload and parameters.

```
init?(payload errorCorrectedPayload: Data, isCompact: Bool, rowCount: Int, columnCount: Int)
```

## Parameters

`errorCorrectedPayload`

The data to encode in the PDF417 code symbol.

`isCompact`

A Boolean indicating whether or not the PDF417 code is compact.

`rowCount`

The number of rows in the PDF417 code, from 3 to 90.

`columnCount`

The number of columns in the Aztec code, from 1 to 30.

## Return Value


An initialized [`CIPDF417CodeDescriptor`](/documentation/CoreImage/CIPDF417CodeDescriptor) instance
or `nil` if the parameters are invalid

---

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)