---
title: "PMWorkflowSubmitPDFWithSettings(_:_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1458874-pmworkflowsubmitpdfwithsettings
---

# PMWorkflowSubmitPDFWithSettings(_:_:_:)

Submits a PDF file for workflow processing using the specified print settings.

## Declaration

```swift
func PMWorkflowSubmitPDFWithSettings(_ workflowItem: CFURL, _ settings: PMPrintSettings, _ 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. | | | | | |
- `settings`: The print settings to apply to the PDF document. These settings are passed to the workflow item as a CUPS options string.
- `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. Special Considerations In OS X v10.4 and earlier, this function is not implemented and returns an error. You can use the function PMWorkflowSubmitPDFWithOptions(_:_:_:_:) together with the function PMPrintSettingsToOptions(_:_:) instead.

## See Also

### Using PDF Workflow Items

- [PMWorkflowCopyItems(_:)](applicationservices/1459914-pmworkflowcopyitems.md)
- [PMWorkflowSubmitPDFWithOptions(_:_:_:_:)](applicationservices/1463747-pmworkflowsubmitpdfwithoptions.md)
