MuPDF.NET
4.1.1
dotnet add package MuPDF.NET --version 4.1.1
NuGet\Install-Package MuPDF.NET -Version 4.1.1
<PackageReference Include="MuPDF.NET" Version="4.1.1" />
<PackageVersion Include="MuPDF.NET" Version="4.1.1" />
<PackageReference Include="MuPDF.NET" />
paket add MuPDF.NET --version 4.1.1
#r "nuget: MuPDF.NET, 4.1.1"
#:package MuPDF.NET@4.1.1
#addin nuget:?package=MuPDF.NET&version=4.1.1
#tool nuget:?package=MuPDF.NET&version=4.1.1
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+ onPATH)- creates a per-user venv and pip-installs PyMuPDF
pymupdf==2.1(the worker; layout ispymupdf.layoutin that package) plus the empty stubpymupdf-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.
License and Copyright
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 | Versions 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. |
-
.NETFramework 4.6.1
- Markdig (>= 0.38.0)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.ML.OnnxRuntime (>= 1.20.1)
- MuPDF.Fonts (>= 1.0.5)
- MuPDF.NativeAssets (>= 1.28.6)
- Newtonsoft.Json (>= 13.0.4)
- SharpZipLib (>= 1.4.2)
- SkiaSharp (>= 3.119.4)
- SkiaSharp.NativeAssets.Linux (>= 3.119.4)
- System.Text.Json (>= 6.0.10)
-
.NETFramework 4.7.2
- Markdig (>= 0.38.0)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.ML.OnnxRuntime (>= 1.20.1)
- MuPDF.Fonts (>= 1.0.5)
- MuPDF.NativeAssets (>= 1.28.6)
- Newtonsoft.Json (>= 13.0.4)
- SharpZipLib (>= 1.4.2)
- SkiaSharp (>= 3.119.4)
- SkiaSharp.NativeAssets.Linux (>= 3.119.4)
- System.Text.Json (>= 8.0.5)
-
.NETFramework 4.8
- Markdig (>= 0.38.0)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.ML.OnnxRuntime (>= 1.20.1)
- MuPDF.Fonts (>= 1.0.5)
- MuPDF.NativeAssets (>= 1.28.6)
- Newtonsoft.Json (>= 13.0.4)
- SharpZipLib (>= 1.4.2)
- SkiaSharp (>= 3.119.4)
- SkiaSharp.NativeAssets.Linux (>= 3.119.4)
- System.Text.Json (>= 8.0.5)
-
.NETStandard 2.0
- Markdig (>= 0.38.0)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.ML.OnnxRuntime (>= 1.20.1)
- MuPDF.Fonts (>= 1.0.5)
- MuPDF.NativeAssets (>= 1.28.6)
- Newtonsoft.Json (>= 13.0.4)
- SharpZipLib (>= 1.4.2)
- SkiaSharp (>= 3.119.4)
- SkiaSharp.NativeAssets.Linux (>= 3.119.4)
- System.IO.Compression (>= 4.3.0)
- System.Text.Json (>= 8.0.5)
-
net5.0
- Markdig (>= 0.38.0)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.ML.OnnxRuntime (>= 1.20.1)
- MuPDF.Fonts (>= 1.0.5)
- MuPDF.NativeAssets (>= 1.28.6)
- Newtonsoft.Json (>= 13.0.4)
- SharpZipLib (>= 1.4.2)
- SkiaSharp (>= 3.119.4)
- SkiaSharp.NativeAssets.Linux (>= 3.119.4)
-
net6.0
- Markdig (>= 0.38.0)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.ML.OnnxRuntime (>= 1.20.1)
- MuPDF.Fonts (>= 1.0.5)
- MuPDF.NativeAssets (>= 1.28.6)
- Newtonsoft.Json (>= 13.0.4)
- SharpZipLib (>= 1.4.2)
- SkiaSharp (>= 3.119.4)
- SkiaSharp.NativeAssets.Linux (>= 3.119.4)
-
net7.0
- Markdig (>= 0.38.0)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.ML.OnnxRuntime (>= 1.20.1)
- MuPDF.Fonts (>= 1.0.5)
- MuPDF.NativeAssets (>= 1.28.6)
- Newtonsoft.Json (>= 13.0.4)
- SharpZipLib (>= 1.4.2)
- SkiaSharp (>= 3.119.4)
- SkiaSharp.NativeAssets.Linux (>= 3.119.4)
-
net8.0
- Azure.AI.OpenAI (>= 2.1.0)
- Azure.Search.Documents (>= 11.6.0)
- Markdig (>= 0.38.0)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.Extensions.AI (>= 10.3.0)
- Microsoft.Extensions.AI.OpenAI (>= 10.3.0)
- Microsoft.ML.OnnxRuntime (>= 1.24.3)
- MuPDF.Fonts (>= 1.0.5)
- MuPDF.NativeAssets (>= 1.28.6)
- Newtonsoft.Json (>= 13.0.4)
- RapidOcrNet (>= 2.0.0)
- SharpZipLib (>= 1.4.2)
- SkiaSharp (>= 3.119.4)
- SkiaSharp.NativeAssets.Linux (>= 3.119.4)
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 |