---
title: "Save PDFs on iOS"
canonical_url: "https://www.nutrient.io/guides/ios/save-a-document/save-as/"
md_url: "https://www.nutrient.io/guides/ios/save-a-document/save-as.md"
last_updated: "2026-05-23T00:08:18.127Z"
description: "Learn how to use the Save As functionality for PDFs on iOS. Follow simple steps to customize your document sharing and saving options easily."
---

# How to save PDFs on iOS

It’s not uncommon for customers to want a setup where a document is read-only but users can still edit it and then use the Save As functionality to save the modified document to a new location. Nutrient supports saving documents with the Save As functionality.

For Save As to work, the most important thing to do is disable autosaving. This is a one-line change to the configuration to disable the [`isAutosaveEnabled`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/pdfconfiguration/isautosaveenabled) property when creating the PDF view controller:

```swift

let pdfViewController = PDFViewController(document: document) {
    $0.isAutosaveEnabled = false
}

```

The user can then save a copy of the document using the standard share button that’s included in Nutrient’s UI by default.

You can also choose to customize the sharing settings so that users aren’t asked about things like whether to embed or flatten annotations after tapping the share button:

```swift

// Allow only a single option for each setting so the first screen of the share UI is skipped.
let sharingConfiguration = DocumentSharingConfiguration {
    $0.fileFormatOptions = [.PDF]
    $0.pageSelectionOptions = [.all]
    $0.annotationOptions = [.embed]
}

let pdfViewController = PDFViewController(document: document) {
    $0.isAutosaveEnabled = false
    $0.sharingConfigurations = [sharingConfiguration]
}

```

If you want to change the icon on the button from the standard share icon to a different icon or use the text “Save As,” this can be done by creating a new bar button item:

```swift

let pdfViewController = PDFViewController(document: document) {
    $0.isAutosaveEnabled = false
}

pdfViewController.navigationItem.rightBarButtonItems = [
    UIBarButtonItem(title: "Save As", style:.plain, target: self, action: #selector(saveAs)),

	pdfViewController.annotationButtonItem
]

```

When the button is tapped, manually create a [`PDFDocumentSharingViewController`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/pdfdocumentsharingviewcontroller):

```swift

@objc func saveAs(_ sender: UIBarButtonItem) {
    guard let document = pdfViewController.document else {
        return
    }

    let sharingController = PDFDocumentSharingViewController(documents: [document], sharingConfigurations: [
        DocumentSharingConfiguration {
            $0.fileFormatOptions = [.PDF]
            $0.pageSelectionOptions = [.all]
            $0.annotationOptions = [.embed]
        }
    ])

    // Setting the sharing flow's delegate to `PDFViewController`
    // allows it to preserve its default behavior and prevents it
    // from saving the original document in place, which would
    // otherwise be done as an optimization in common cases.
    sharingController.delegate = pdfViewController

    sharingController.present(from: pdfViewController, sender: sender)
}

```
---

## Related pages

- [Automatically save PDFs on iOS](/guides/ios/features/document-checkpointing.md)
- [Conflict resolution when saving PDFs on iOS](/guides/ios/features/conflict-resolution.md)
- [Incremental PDF saving on iOS](/guides/ios/faq/growing-pdf-file-size.md)
- [Save PDF documents on iOS](/guides/ios/save-a-document.md)
- [Save PDFs to a custom data provider on iOS](/guides/ios/save-a-document/to-custom-data-provider.md)
- [Save PDFs to local storage on iOS](/guides/ios/save-a-document/to-local-storage.md)
- [Save and upload PDFs on iOS devices](/guides/ios/save-a-document/to-remote-server.md)
- [Save PDFs to Document Engine on iOS](/guides/ios/save-a-document/to-document-engine.md)

