MuPDF.NET 2.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package MuPDF.NET --version 2.0.2                
NuGet\Install-Package MuPDF.NET -Version 2.0.2                
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="2.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MuPDF.NET --version 2.0.2                
#r "nuget: MuPDF.NET, 2.0.2"                
#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 MuPDF.NET as a Cake Addin
#addin nuget:?package=MuPDF.NET&version=2.0.2

// Install MuPDF.NET as a Cake Tool
#tool nuget:?package=MuPDF.NET&version=2.0.2                

MuPDF.NET

About

MuPDF.NET adds C#/.NET bindings and abstractions to MuPDF, a lightweight PDF, XPS, and eBook viewer, renderer, and toolkit. Both MuPDF.NET and MuPDF are maintained and developed by Artifex Software, Inc.

Prerequisites

While being portable to other platforms, this documentation is targeted to the Windows operating system and Visual Studio only.

  • Visual Studio Community version 2019 or version 2022
  • .Net v7 or later

Installation

  • Clone this repository.

  • Expand folder MuPDF.NET and double-click on file MuPDF.NET.sln. This will start your Visual Studio application.

  • Select Release and x64 and select Build|Solution. Look at the window "Solution Explorer". If you see warnings like in this picture, click on "Install" as indicated to install any missing components. alt text

  • Again select Build|Solution and make sure the generation is successful.

  • Folder MuPDF.NET will now contain some DLL files of which you need mupdfcpp64.dll and mupdfcsharp.dll for all your future mupdf.net applications. DLL mupdfcpp64.dll contains the C library MuPDF wrapped with a C++ binding, and mupdfcsharp.dll contains the C# bindings for MuPDF.

  • Your system administration may determine to put these DLLs in a system folder or provide access to it via a path environment variable. If neither of this is the case, both files must be present in the project bin folder of your applications.

Creating a MuPDF.NET Application

  • Create a C# application using the same Visual Studio version that created above system DLLs.

  • Download and add MuPDF.NET package from Nuget. Refer to it via instruction using MuPDF.NET; in your C# source.

  • Code your program and build it using the VS menu items Build|Solution. If the system DLLs are not globally accessible as mentioned above, copy mupdfcpp64.dll and mupdfcsharp.dll to your application's bin folder.

  • The generated executable of your app is the .exe file in the bin folder.

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

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-android33.0 is compatible.  net7.0-ios was computed.  net7.0-ios16.1 is compatible.  net7.0-maccatalyst was computed.  net7.0-maccatalyst16.1 is compatible.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net7.0-windows10.0.19041 is compatible.  net8.0 was computed.  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. 
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
2.1.1 541 10/7/2024
2.1.0 833 8/13/2024
2.0.12-alpha 183 7/8/2024
2.0.11-alpha 165 7/2/2024
2.0.10-alpha 117 6/29/2024
2.0.9-alpha 127 6/28/2024
2.0.8-alpha 153 6/26/2024
2.0.7-alpha 131 6/7/2024
2.0.6-alpha 114 5/27/2024
2.0.5-alpha 177 5/21/2024
2.0.4 916 5/3/2024
2.0.3 189 5/1/2024
2.0.2 216 5/1/2024
2.0.1 183 5/1/2024
2.0.0 302 2/16/2024