IronPdf.Viewer.Maui 2023.11.4

Prefix Reserved
dotnet add package IronPdf.Viewer.Maui --version 2023.11.4                
NuGet\Install-Package IronPdf.Viewer.Maui -Version 2023.11.4                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="IronPdf.Viewer.Maui" Version="2023.11.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IronPdf.Viewer.Maui --version 2023.11.4                
#r "nuget: IronPdf.Viewer.Maui, 2023.11.4"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install IronPdf.Viewer.Maui as a Cake Addin
#addin nuget:?package=IronPdf.Viewer.Maui&version=2023.11.4

// Install IronPdf.Viewer.Maui as a Cake Tool
#tool nuget:?package=IronPdf.Viewer.Maui&version=2023.11.4                

windows macOS livechat

IronPDF Viewer - View PDFs in MAUI Applications

IronPDF Viewer Banner

IronPDF Viewer is a free-to-use .NET PDF viewer developed and maintained by Iron Software that can be used to view, save, and print PDF files. It can be integrated into MAUI applications on either macOS or Windows.

Branding will be removed upon application of a trial or license key of IronPDF. For more information please visit https://ironpdf.com/licensing/

IronPDF Viewer supports:

  • .NET 7
  • Windows 10+, macOS (ARM and Intel)
  • MAUI

Getting Started

Prerequisites

To add IronPDF Viewer to your MAUI application, first ensure that it does not target iOS and Android platforms. To do this in Visual Studio, follow the steps below:

  1. Right-click on your project and select "Properties".
  2. In the section "iOS Targets", uncheck "Enable targeting of the iOS Platform".
  3. In the section "Android Targets", uncheck "Enable targeting of the Android platform".

Unchecking both may require you to reload your project and/or restart Visual Studio.

Installing IronPDF Viewer

To install IronPDF Viewer, open the NuGet Package Manager Console and run the following command:

PM> Install-Package IronPdf.Viewer.Maui

Alternatively, you could perform the following steps to install with NuGet Package Manager:

  1. Right-click on Dependencies/Nuget.
  2. Select "Manage Nuget Packages"
  3. Search for "IronPdf.Viewer.Maui"
  4. Click "Add Package"

Adding the Viewer to your MAUI Project

In your MAUI app, add the following code to MauiProgram.cs:

using IronPdf.Viewer.Maui;

public static class MauiProgram
{
    public static MauiApp CreateMauiApp()
    {
        var builder = MauiApp.CreateBuilder();
        builder
            .UseMauiApp<App>()
            // other configuration options ...
            .ConfigureIronPdfView(); // configure the viewer on app start-up

        return builder.Build();
    }
}

Then add the IronPdfView component to a view in C#:

using IronPdf.Viewer.Maui;

public class MainPage : ContentPage
{
    private readonly IronPdfView pdfView;

    public MainPage()
    {
        InitializeComponent();

        this.pdfView = new IronPdfView { Options = IronPdfViewOptions.All };

        Content = this.pdfView;
    }
}

Alternatively, you could add the IronPdfView component to a view in XAML:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage ...
    xmlns:ipv="clr-namespace:IronPdf.Viewer.Maui;assembly=IronPdf.Viewer.Maui"
    ...>
    <ipv:IronPdfView x:Name="pdfView" Options="All" />
</ContentPage>

IronPDF NuGet Trial Banner Image

Licensing & Support Available

IronPDF Viewer is a part of our IronPDF product suite. For our full list of code examples, tutorials, licensing information, and documentation, visit: https://www.ironpdf.com/

For more support and inquiries, please email us at: support@ironsoftware.com

Product Compatible and additional computed target framework versions.
.NET net7.0-maccatalyst16.1 is compatible.  net7.0-windows10.0.19041 is compatible.  net8.0-maccatalyst was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2023.11.4 581 10/30/2023
2023.10.74 250 9/7/2023

Initial release!