MuPDF.NET 4.1.1

dotnet add package MuPDF.NET --version 4.1.1
                    
NuGet\Install-Package MuPDF.NET -Version 4.1.1
                    
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="MuPDF.NET" Version="4.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MuPDF.NET" Version="4.1.1" />
                    
Directory.Packages.props
<PackageReference Include="MuPDF.NET" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MuPDF.NET --version 4.1.1
                    
#r "nuget: MuPDF.NET, 4.1.1"
                    
#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.
#:package MuPDF.NET@4.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MuPDF.NET&version=4.1.1
                    
Install as a Cake Addin
#tool nuget:?package=MuPDF.NET&version=4.1.1
                    
Install as a Cake Tool

About

MuPDF.NET 4.1 adds .NET bindings and abstractions to MuPDF 1.28.6, matching PyMuPDF 2.1.

Programs written in any .NET language (C#, Visual Basic .NET, F#) use the same API shape as PyMuPDF.

Refer to the MuPDF.NET documentation for usage (see The Basics for common use cases).

Runnable samples are in MuPDF.NET.Examples (dotnet run --project MuPDF.NET/01-OpenSave).

Include PyMuPDF Layout

This is an optional, but highly recommended, step to enhance your solution by providing superior layout analysis for your documents.

PyMuPDF includes a layout-aware document engine for AI. Its ML-based layout analysis turns PDFs and Office files into high-quality Markdown for RAG and agents, running fast on CPU and grounding every result to its source page.

Installation

In your project folder do the following:

  • dotnet msbuild -t:MuPDFNetSetupLayoutPython (Python 3.11+ on PATH)
  • creates a per-user venv and pip-installs PyMuPDF pymupdf==2.1 (the worker; layout is pymupdf.layout in that package) plus the empty stub pymupdf-layout==2.1
  • This will include PyMuPDF in your solution, with its own license conditions
  • Check with dotnet msbuild -t:MuPDFNetVerifyLayoutPython
  • Full steps: MuPDF.NET README — Layout analysis.

Improved Document Conversion

With Layout enabled discover superior results when converting documents to Markdown, JSON, plain text, or chunks for LLM and RAG pipelines (Document.ToMarkdown, Document.ToJson, Document.ToText, Document.ToChunks).

Office Files

See the separate commercial package MuPDF.NET.Office 2.1.0 (NuGet) for Office (DOC/DOCX, XLS/XLSX, PPT/PPTX) and HWP/HWPX file support.

Try a free 60 day Office trial.

MuPDF.NET is available under the Artifex Community License and commercial license agreements. If you determine you cannot meet the requirements of the Artifex Community License, please contact Artifex for more information regarding a commercial license.


MuPDF.NET, PyMuPDF and MuPDF are maintained and developed by Artifex Software, Inc.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on MuPDF.NET:

Package Downloads
PDF4LLM

LLM/RAG helpers for MuPDF.NET: PDF-to-Markdown conversion, layout parsing, document structure analysis. Designed for use with RAG pipelines and integration with LLMs.

MuPDF.NET.Office

Commercial Office/HWP extensions for MuPDF.NET (doc, docx, xls, xlsx, ppt, pptx, hwp, hwpx). Powered by SmartOffice. Requires a license or trial key. .NET port of PyMuPDF Office.

MuPDF.NET.PDF4LLM

Deprecated. Will be removed. Empty 2.1 type-forward stub (PyPI pymupdf4llm 2.1). Use MuPDF.NET 4.1 (Document.ToMarkdown / Utils.UseLayout / Utils.LoadAiAsync) and MuPDF.NET.Office 2.1. Do not add this package to new projects.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on MuPDF.NET:

Repository Stars
xiaocang/easydict_win32
Easy to look up words or translate text. Windows port of tisfeng/Easydict.
Version Downloads Last Updated
4.1.1 85 11/18/2026
4.1.0 296 11/13/2026
4.0.1 313 11/5/2026
4.0.0 305 11/2/2026
3.28.2.4 6,545 9/23/2026
3.28.2.3 227 9/18/2026
3.28.2.2 624 9/16/2026
3.28.2.1 153 9/15/2026
3.28.2 914 8/21/2026
3.28.1.6 1,255 8/6/2026
3.28.1.5 334 7/29/2026
3.28.1.3 1,305 7/15/2026
3.28.1.2 284 7/14/2026
3.28.0 600 7/6/2026
Loading failed