Skip to Content
NexPDF

NexPDF for .NET MAUI

A native PDF view with pinch and double-tap zoom for Android, iOS, Mac Catalyst and Windows, plus the full NexPDF .NET engine API.

English

NexPDF for .NET MAUI (Nexdevit.NexPdf.Maui) adds PdfView, a native PDF view for Android, iOS, Mac Catalyst and Windows. It stacks the pages vertically and renders them in the background with the NexPDF engine, with pinch-to-zoom and double-tap zoom that keep the point under your finger in place. The package compiles the .NET SDK sources too, so NexPdfDocument and NexPdfSdk are available with every engine function.

using Nexdevit.NexPdf.Maui;

var view = new PdfView();
view.PageChanged += (_, page) => Title = $"Page {page + 1} of {view.PageCount}";
Content = view;
await view.LoadAsync(await File.ReadAllBytesAsync(path));

Requirements

.NET.NET 10 SDK with the MAUI workload
AndroidAPI 24 or later
iOS, Mac Catalyst15.0 or later
WindowsWindows 10 version 19041 or later (built on Windows)
Native engineNexPdfCore.xcframework (iOS, Mac Catalyst), libnexpdf_ffi.so (Android), nexpdf_ffi.dll (Windows)

What PdfView does

MemberPurpose
LoadAsync(byte[]), LoadAsync(byte[], password)Opens a PDF (or a picture, Office file, e-book or comic the engine converts) on a background thread, with a password for encrypted PDFs
DocumentBytesBindable property; setting it opens the document
PasswordBindable property; the password DocumentBytes and LoadAsync(byte[]) open with. Setting it after a failed open retries
DocumentThe open NexPdfDocument, with the whole .NET API
ReloadAsync()Re-reads page sizes and re-renders after you change Document
GoToPageAsync(page, animated)Scrolls to a 0-based page
SetZoom(zoom)Sets the zoom; 1 fits the page to the view width, clamped to MinZoom (0.5) and MaxZoom (5.0)
PageCount, CurrentPage, ZoomCurrent state
PageChangedRaised with the 0-based index of the page at the top of the view
LoadFailedRaised with the exception when a document fails to open
PasswordRequiredRaised when the password is missing or wrong (WrongPassword); see Encrypted PDFs
Dispose()Cancels rendering and frees the document

Status in 1.1

This version is a viewer with zoom, password-protected PDFs included, plus the engine API. The editing UI (annotation tools, form filling, signing) is not in MAUI yet; it exists in the iOS, Android and web SDKs. You can still edit through view.Document in code, as the guides show. Until the UI comes to MAUI, embed the web viewer in a WebView if your users need to annotate by hand.

Editing the open document

view.Document is a full .NET NexPdfDocument. Change it, then call ReloadAsync() so the view picks up new pages, sizes and content:

view.Document!.AddWatermark("DRAFT");
await view.ReloadAsync();

PdfView renders on a background thread and does not lock Document for your own calls. For long edits, work on your own document and hand the result to the view:

using var doc = NexPdfDocument.OpenBytes(original);
doc.RotatePage(0, 90);
await view.LoadAsync(doc.SaveBytes());

Getting started

Guides

Opening and saving

Files, bytes, passwords, pictures, HTML and Office input.

Rendering

How the view renders; PNGs and tap coordinates.

Document structure

Metadata, bookmarks, page labels, layers, attachments.

Text extraction

Text, Markdown, positioned blocks, passages for LLMs.

Search

Find text and highlight the matches.

OCR

Make scanned pages searchable, in any script.

Structured extraction

Tables, key-values, schema extraction with your LLM, classification.

Barcodes

Read QR, Data Matrix, PDF417 and linear codes; draw barcodes.

Annotations

Add, list and remove annotations, then save.

Forms

Fill fields from JSON and save.

XFA forms

Run FormCalc and JavaScript, lay out dynamic forms, convert to AcroForm, flatten.

Comment threads

Replies and review states on annotations.

Real-time collaboration

Sync pages, annotations, comments, form values and bookmarks.

Editing

Rotate, reorder, merge, add photos as pages.

Compare and optimise

Diff versions, shrink files, control memory.

Word-level comparison

Inserted, deleted, replaced and moved text; annotated PDF.

Security

Encrypted files, encryption, watermarks.

Redaction

Remove content for good by area, text or pattern.

Signatures

Verify, sign with PKCS#12, drawn signatures.

Long-term signatures

PAdES B-LTA, document and archive timestamps.

Conversion

PDF to Word, Excel, PowerPoint, HTML and more.

Templates

PDFs from Word, HTML and PDF templates and JSON data.

PDF/A, PDF/X and PDF/UA

Archiving, print and accessibility.

PDF/A and PDF/UA validation

PDF/A and PDF/UA-1 and -2 with clause ids; convert to PDF/A or PDF/UA.

Help and reference

On this page