---
title: "exportToPDF(visibleParts:)"
framework: Assignables
role: symbol
role_heading: Instance Method
platforms: [iOS 17.4+, iPadOS 17.4+, Mac Catalyst 17.4+]
path: "assignables/mergeabledocument/exporttopdf(visibleparts:)"
---

# exportToPDF(visibleParts:)

Exports the indicated layers of this document into a single PDFDocument.

## Declaration

```swift
func exportToPDF(visibleParts: [Self.PartID]) async -> PDFDocument
```

## Parameters

- `visibleParts`: The lDs of layers that should be included in the thumbnail.
