Skip to main content

Getting started

Sample Project

If you prefer sample projects over documentation, check out our Docutain SDK .NET MAUI Sample on Github.

Requirements

.NET9 or 10
Android6.0 (Api Level 23) or higher
iOS13.0 or higher

The package ships the target frameworks net9.0-android, net10.0-android, net9.0-ios and net10.0-ios. If your MAUI project targets additional platforms, e.g. Windows or Mac Catalyst, reference the package only for the target frameworks it supports:

<ItemGroup Condition="$(TargetFramework.Contains('-android')) or $(TargetFramework.Contains('-ios'))">
<PackageReference Include="Docutain.SDK.MAUI" Version="3.0.0" />
</ItemGroup>

Set the minimum platform versions in your project file:

<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-android'))">23.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-ios'))">13.0</SupportedOSPlatformVersion>

Docutain SDK Dependencies

Install Nuget Package

The Docutain SDK for .NET MAUI is distributed through nuget.org. You’ll find the package in your development environment by searching for Docutain.SDK.MAUI.

Install the nuget package into your project. All native dependencies the SDK needs, e.g. CameraX and ML Kit on Android, are pulled in automatically.

NuGet package

Android Manifest

Memory settings

Your application will work with high-resolution images. To avoid OutOfMemoryError exceptions it is highly recommended to set android:largeHeap="true" in the <application> element of your AndroidManifest.xml file.

<application android:largeHeap="true" ...>
...
</application>

iOS Manifest

Camera Permission

If you want to use the document scanner, you need to specify the reason for requesting access to the camera as part of the NSCameraUsageDescription in the Info.plist. If you don't the app will crash.


NSCameraUsageDescription