---
title: "Open a local PDF file on iOS app | Nutrient SDK"
canonical_url: "https://www.nutrient.io/guides/ios/open-a-document/from-local-storage/"
md_url: "https://www.nutrient.io/guides/ios/open-a-document/from-local-storage.md"
last_updated: "2026-05-23T00:08:18.115Z"
description: "Open PDF files from local storage in your iOS app using Nutrient iOS SDK. Learn to integrate and display documents with clear code examples in Swift and Objective-C."
---

# Open a local file on iOS

Nutrient iOS SDK enables you to open PDF and image (PNG, JPEG, and TIFF) files from your device’s local storage. This article shows how to open a PDF document from local storage.

First, you need to add the PDF document you want to display to your application by dragging it into your project. On the dialog that’s displayed, select Finish to accept the default integration options. You can use [this welcome PDF](https://raw.githubusercontent.com/PSPDFKit/pspdfkit-ios-catalog/refs/heads/master/Samples/Nutrient%20welcome.pdf) as an example.

Then, load your PDF document and display the view controller. This can be done in a button action handler, table view cell selection delegate, or similar:

### SWIFT

```swift

// Update to use your document name.
let fileURL = Bundle.main.url(forResource: "Document", withExtension: "pdf")!
let document = Document(url: fileURL)

// The configuration closure is optional and allows additional customization.
let pdfController = PDFViewController(document: document) {
	$0.isPageLabelEnabled = false
}

// Present the PDF view controller within a `UINavigationController` to show built-in toolbar buttons.
present(UINavigationController(rootViewController: pdfController), animated: true)

```

### OBJECTIVE-C

```objc

// Update to use your document name.
NSURL *documentURL = [NSBundle.mainBundle URLForResource:@"Document" withExtension:@"pdf"];
PSPDFDocument *document = [[PSPDFDocument alloc] initWithURL:documentURL];

// The configuration object is optional and allows additional customization.
PSPDFViewController *pdfController = [[PSPDFViewController alloc] initWithDocument:document configuration:[PSPDFConfiguration configurationWithBuilder:^(PSPDFConfigurationBuilder *builder) {
	builder.pageLabelEnabled = NO;
}]];

// Present the PDF view controller within a `UINavigationController` to show built-in toolbar buttons.
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:pdfController];
[self presentViewController:navController animated:YES completion:NULL];

```

For more details about opening a document from local storage, refer to [`PlaygroundExample.swift`] in the [Nutrient Catalog](https://github.com/PSPDFKit/pspdfkit-ios-catalog) app.

## Using the document browser

Nutrient also allows you to open a document using the system document browser. For more details and a runnable sample project, take a look at the [SwiftUI document browser example project on GitHub](https://github.com/PSPDFKit/pspdfkit-ios-swiftui-document-browser-example).
---

## Related pages

- [File coordination on iOS](/guides/ios/features/file-coordination.md)
- [Open a PDF from in-memory data on iOS](/guides/ios/open-a-document/from-in-memory-data.md)
- [Open a PDF from a custom data provider on iOS](/guides/ios/features/data-providers.md)
- [Open a PDF on iOS](/guides/ios/open-a-document.md)
- [Document Downloads](/guides/ios/miscellaneous/document-downloads.md)
- [Troubleshoot opening a document](/guides/ios/open-a-document/troubleshooting.md)
- [Open a PDF from Document Engine on iOS](/guides/ios/open-a-document/from-document-engine.md)
- [Open password-protected PDFs on iOS](/guides/ios/open-a-document/password-protected-pdfs.md)

