---
title: NSPDFPanel
framework: appkit
role: symbol
role_heading: Class
path: appkit/nspdfpanel
---

# NSPDFPanel

A Save or Export as PDF panel that’s consistent with the macOS user interface.

## Declaration

```swift
@MainActor class NSPDFPanel
```

## Overview

Overview A PDF panel has a variety of built-in customization controls, such as page orientation, paper size, and tags. It also supports the use of a custom accessory view controller that allows an app to specify how a PDF file should be created.

## Topics

### Managing the Contents of a PDF Panel

- [accessoryController](appkit/nspdfpanel/accessorycontroller.md)
- [options](appkit/nspdfpanel/options-swift.property.md)
- [defaultFileName](appkit/nspdfpanel/defaultfilename.md)

### Displaying a PDF Panel

- [beginSheet(with:modalFor:completionHandler:)](appkit/nspdfpanel/beginsheet(with:modalfor:completionhandler:).md)

### Constants

- [NSPDFPanel.Options](appkit/nspdfpanel/options-swift.struct.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)

## See Also

### Print and PDF Panels

- [NSPrintPanelAccessorizing](appkit/nsprintpanelaccessorizing.md)
