---
title: "PMWorkflowSubmitPDFWithOptions(_:_:_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1463747-pmworkflowsubmitpdfwithoptions
---

# PMWorkflowSubmitPDFWithOptions(_:_:_:_:)

Submits a PDF file for workflow processing using the specified CUPS options string.

## Declaration

```swift
func PMWorkflowSubmitPDFWithOptions(_ workflowItem: CFURL, _ title: CFString?, _ options: UnsafePointer<CChar>?, _ pdfFile: CFURL) -> OSStatus
```

## Parameters

- `workflowItem`: A file system URL pointing to the workflow item that will handle the PDF file. See doc://com.apple.documentation/documentation/applicationservices/1459914-pmworkflowcopyitems. The following table describes the different types of workflow items for this function. | | | | | |
- `title`: The user-displayable name of the PDF document.
- `options`: A string of CUPS-style key-value pairs that may be passed to the PDF workflow item. This parameter can be NULL in which case an empty string of options is used.
- `pdfFile`: A file system URL pointing to the PDF file to be processed by the workflow item.

## Return Value

Return Value A result code. See Result Codes.

## Discussion

Discussion The printing system uses this function in conjunction with the function PMWorkflowCopyItems(_:) to implement the PDF workflow button in the Print dialog.

## See Also

### Using PDF Workflow Items

- [PMWorkflowCopyItems(_:)](applicationservices/1459914-pmworkflowcopyitems.md)
- [PMWorkflowSubmitPDFWithSettings(_:_:_:)](applicationservices/1458874-pmworkflowsubmitpdfwithsettings.md)
