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

# exportToPDF(visibleParts:)

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

## Declaration

```swift
func exportToPDF(visibleParts: [MergeablePartsContainerPartID]) async -> PDFDocument
```

## Parameters

- `visibleParts`: The lDs of parts that should be included in the exported PDF.
