---
title: "Save PDF document to local storage in MAUI | Nutrient"
canonical_url: "https://www.nutrient.io/guides/maui/save-a-document/to-local-storage/"
md_url: "https://www.nutrient.io/guides/maui/save-a-document/to-local-storage.md"
last_updated: "2026-06-19T07:57:11.460Z"
description: "Nutrient MAUI SDK enables exporting documents in a variety of ways. This guide covers the simplest one: saving to local storage."
---

# Save a PDF to local storage in MAUI

Nutrient MAUI SDK enables exporting documents in a variety of ways. This guide covers the simplest one: saving to local storage.

Note that there’s a platform-specific setup required for `FileSaver`. It’s worth reading about the setup [here](https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/essentials/file-saver) if you’re not familiar with it.



## Exporting a document

In our APIs, the word export is synonymous with save. The snippet below allows you to export a currently open document to its original source:

```csharp

try
{
    var exportConfiguration = _document.CreateExportConfiguration();
    // Update the configuration here.

    var exportedDocumentContent = await _document.ExportDocumentAsync(exportConfiguration);
    var result = await FileSaver.Default.SaveAsync(
        "download.pdf", new MemoryStream(exportedDocumentContent), CancellationToken.None);
    if (!string.IsNullOrEmpty(result.FilePath) &&!result.IsSuccessful)
    {
        throw result.Exception;
    }
}
catch (Exception ex)
{
    // Handle the exception.
}

```

For more control over exporting documents, use [`IExportConfiguration`](https://www.nutrient.io/guides/maui/save-a-document/export-configuration/). If you pass `null` instead, the default configuration will be used:

```csharp

var exportOptions = _document.CreateExportConfiguration();
{
    ExcludeAnnotations = true,
    ExportForPrinting = true,
    ExportIncrementally = false,
    Flatten = true,
};

var exportedDocumentContent = await _document.ExportDocumentAsync(exportConfiguration);

```
---

## Related pages

- [Save a PDF document to an array buffer in MAUI](/guides/maui/save-a-document/to-arraybuffer.md)
- [Exporting a PDF in MAUI](/guides/maui/save-a-document/export-configuration.md)
- [Save a PDF to a remote server in MAUI](/guides/maui/save-a-document/to-remote-server.md)
- [Save a PDF document in MAUI](/guides/maui/save-a-document.md)

