---
title: "printOperation(with:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/webframeview/printoperation(with:)"
---

# printOperation(with:)

Returns a print operation object to print this frame.

## Declaration

```swift
func printOperation(with printInfo: NSPrintInfo!) -> NSPrintOperation!
```

## Parameters

- `printInfo`: Information about the print settings needed to print this frame. See doc://com.apple.documentation/documentation/AppKit/NSPrintInfo for more information about this object.

## Return Value

Return Value An NSPrintOperation object set up to print this frame. See NSPrintOperation for more information about this object.

## See Also

### Printing Views

- [canPrintHeadersAndFooters](webkit/webframeview/canprintheadersandfooters.md)
- [documentViewShouldHandlePrint](webkit/webframeview/documentviewshouldhandleprint.md)
- [printDocumentView()](webkit/webframeview/printdocumentview().md)
