---
title: "PMWorkflowCopyItems(_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1459914-pmworkflowcopyitems
---

# PMWorkflowCopyItems(_:)

Obtains an array of the available PDF workflow items.

## Declaration

```swift
func PMWorkflowCopyItems(_ workflowItems: UnsafeMutablePointer<Unmanaged<CFArray>?>) -> OSStatus
```

## Parameters

- `workflowItems`: A pointer to your doc://com.apple.corefoundation/documentation/CoreFoundation/CFArray variable. On return, the variable refers to an Core Foundation array. Each element in the array is a dictionary that describes either a PDF workflow item or a folder containing a set of PDF workflow items. For a list of possible keys, see doc://com.apple.documentation/documentation/applicationservices/core_printing/pdf_workflow_dictionary_keys. You are responsible for releasing the array.

## Return Value

Return Value A result code. See Result Codes.

## See Also

### Using PDF Workflow Items

- [PMWorkflowSubmitPDFWithOptions(_:_:_:_:)](applicationservices/1463747-pmworkflowsubmitpdfwithoptions.md)
- [PMWorkflowSubmitPDFWithSettings(_:_:_:)](applicationservices/1458874-pmworkflowsubmitpdfwithsettings.md)
