Contents

dataWithPDF(inside:)

Returns PDF data that draws the region of the window within a given rectangle.

Declaration

func dataWithPDF(inside rect: NSRect) -> Data

Parameters

  • rect:

    A rectangle (expressed in the window’s coordinate system) that identifies the region to be expressed as PDF data.

Return Value

The region in the window (identified by rect) as PDF data.

Discussion

This data can be placed on a pasteboard, written to a file, or used to create an NSImage object.

See Also

Related Documentation

Printing Windows