Use IronPDF on Android with MAUI
IronPDF is equipped to run as a remote service, offering improved convenience, performance, and deployability. Many customers are already using this technology to run IronPDF in a Docker container alongside their main applications.
The IronPdf.Server.Azure
NuGet package now enables running IronPDF in the cloud, making it easy to use IronPDF across any platform, including mobile!
For your convenience, you can clone a GitHub repository on the right side.
Get started with IronPDF
Start using IronPDF in your project today with a free trial.
How to use IronPDF on MAUI Android
- Download the C# library to render PDF files on Android
- Configure the Azure App Service
- Configure the Android MAUI client
- Generate and edit PDFs on Android with ease
- Download the project for a fast start
Azure App Service Host
- Create a new Azure BLOB Storage Container
- Create a new Azure App Service and App Service Plan. We suggest Basic B2 plan or greater, but Free F1 should be sufficient to get started.
- Navigate to the Settings/Configuration section of your Web app and set the following values:
BLOB_STORAGE_CONNECTION
: You can configure a connection string according to the format outlined by MicrosoftBLOB_STORAGE_CONTAINER
: This is just the name of the container within the storage accountHTTP20_ONLY_PORT
: Must be set to 80
- Using Visual Studio, open the example Azure App Service Linux Container app,
IronPdf.Android.Server.csproj
- Create a new publish profile which targets the Azure App Service you created in step 2.
- Publish your app!
- After several minutes, you should be able to verify your app is successfully publish by navigating to the URL in a browser, which will print a simple debug string.
Android MAUI Client
- Using Visual Studio, open the example MAUI Android application,
IronPdf.Android.Client.csproj
- Within MainPage.xaml.cs, set your license key or remove this line to generate watermarked documents
- Within MainPage.xaml.cs, change the Host = "
https://YOUR-APP-SERVICE.azurewebsites.net/
", line to your Azure App Service which is hosting IronPdf. - Run the demo on an Android device which supports API 21.0 or higher.
NOTE: Depending on your plan settings, the first render may take a while as your Azure App Service is started for the first time.