---
title: "Nutrient MAUI SDK 1.2 migration guide"
canonical_url: "https://www.nutrient.io/guides/maui/migration-guides/maui-1-2-migration-guide/"
md_url: "https://www.nutrient.io/guides/maui/migration-guides/maui-1-2-migration-guide.md"
last_updated: "2026-06-09T10:30:03.950Z"
description: "Discover essential guidelines for upgrading to Nutrient 1.2. Learn about added flexibility to use advanced APIs."
---

This article provides a set of guidelines for migrating from version 1.1 to version 1.2 of Nutrient MAUI SDK.

## Advanced access to APIs

With the introduction of Nutrient MAUI SDK 1.2, we’ve added the ability to access Nutrient Web SDK APIs directly from the `Controller` object instead of the `Document` object. This increases the flexibility of accessing JavaScript APIs in your MAUI application even before a document is loaded:

```js

advanceConfiguration = {
	enableHistory: true,
	disableMultiSelection: true,
	preventTextCopy: true,
};

function setPassword(password) {
	advanceConfiguration.password = password;
}

```

```csharp

private void OnPDFViewInitialized(object sender, EventArgs e)
{
    await PDFView.Controller.ExecuteJavaScriptFunctionAsync("setPassword", new object[] { "password-for-this-document" });
    await PDFView.Controller.LoadDocumentFromAssetsAsync("protected.pdf", PDFView.Controller.CreateViewerConfiguration());
}

```

---

## Related pages

- [Maui 1 1 Migration Guide](/guides/maui/migration-guides/maui-1-1-migration-guide.md)

