PDFtoImage 6.0.0-preview
dotnet add package PDFtoImage --version 6.0.0-preview
NuGet\Install-Package PDFtoImage -Version 6.0.0-preview
<PackageReference Include="PDFtoImage" Version="6.0.0-preview" />
<PackageVersion Include="PDFtoImage" Version="6.0.0-preview" />
<PackageReference Include="PDFtoImage" />
paket add PDFtoImage --version 6.0.0-preview
#r "nuget: PDFtoImage, 6.0.0-preview"
#:package PDFtoImage@6.0.0-preview
#addin nuget:?package=PDFtoImage&version=6.0.0-preview&prerelease
#tool nuget:?package=PDFtoImage&version=6.0.0-preview&prerelease
PDFtoImage
A .NET library for rendering PDF files as images.
PDFtoImage uses PDFium for rendering and SkiaSharp for images.
Getting started
Render the first page of a PDF as PNG with PDFtoImage.Conversion:
using var pdf = File.OpenRead("document.pdf");
PDFtoImage.Conversion.SavePng(
imageFilename: "page1.png",
pdfStream: pdf,
page: 0);
SaveJpeg, SavePng, SaveWebp, and ToImage render a single page. ToImages and ToImagesAsync render multiple pages.
Dispose returned SKBitmap instances after use. To save one, use SKBitmap.Encode.
Unity project installation
- Open your project and navigate to
Window→Package Management→Package Manager. - Click on the
+button (top-left corner) and selectInstall package from git URL.... - Enter the following URL and confirm with the
Installbutton:
https://github.com/sungaila/PDFtoImage.git?path=etc/UnityPackage
Supported runtimes
Tested and supported frameworks
- ASP.NET
- ASP.NET Core
- Blazor WebAssembly
- .NET Multi-platform App UI (.NET MAUI) (excluding iOS, see #141)
- Unity (excluding iOS, see #141)
- Universal Windows Platform (UWP)
- Windows UI Library 3 (WinUI 3)
Parallel rendering
PDFium is not thread-safe, so PDFtoImage serializes PDFium calls within each process. For parallel rendering on .NET 11 or later, use PDFtoImage.Parallel. It runs PDFium in separate worker processes.
See the Parallel README for examples.
Index and Range for .NET Framework
PolySharp provides System.Index and System.Range for .NET Framework projects. It also exposes the following generated types; avoid using them directly:
System.IndexSystem.RangeSystem.Diagnostics.CodeAnalysis.DoesNotReturnAttributeSystem.Diagnostics.CodeAnalysis.NotNullWhenAttributeSystem.Runtime.CompilerServices.IsExternalInit
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-browser1.0 is compatible. 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 is compatible. net10.0-android was computed. net10.0-android36.0 is compatible. net10.0-browser was computed. net10.0-browser1.0 is compatible. net10.0-ios was computed. net10.0-ios26.0 is compatible. net10.0-maccatalyst was computed. net10.0-maccatalyst26.0 is compatible. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. net11.0-android37.0 is compatible. net11.0-browser1.0 is compatible. net11.0-ios26.5 is compatible. net11.0-maccatalyst26.5 is compatible. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| .NET Framework | net471 is compatible. net472 was computed. net48 was computed. net481 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | 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.7.1
- bblanchon.PDFium.Linux (>= 156.0.8066)
- bblanchon.PDFium.macOS (>= 156.0.8066)
- bblanchon.PDFium.Win32 (>= 156.0.8066)
- SkiaSharp (>= 4.152.1)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 4.152.1)
- SkiaSharp.NativeAssets.macOS (>= 4.152.1)
- SkiaSharp.NativeAssets.Win32 (>= 4.152.1)
-
.NETFramework 4.8.1
- bblanchon.PDFium.Linux (>= 156.0.8066)
- bblanchon.PDFium.macOS (>= 156.0.8066)
- bblanchon.PDFium.Win32 (>= 156.0.8066)
- SkiaSharp (>= 4.152.1)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 4.152.1)
- SkiaSharp.NativeAssets.macOS (>= 4.152.1)
- SkiaSharp.NativeAssets.Win32 (>= 4.152.1)
-
.NETStandard 2.1
- bblanchon.PDFium.Linux (>= 156.0.8066)
- bblanchon.PDFium.macOS (>= 156.0.8066)
- bblanchon.PDFium.Win32 (>= 156.0.8066)
- SkiaSharp (>= 4.152.1)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 4.152.1)
- SkiaSharp.NativeAssets.macOS (>= 4.152.1)
- SkiaSharp.NativeAssets.Win32 (>= 4.152.1)
-
net10.0
- bblanchon.PDFium.Linux (>= 156.0.8066)
- bblanchon.PDFium.macOS (>= 156.0.8066)
- bblanchon.PDFium.Win32 (>= 156.0.8066)
- SkiaSharp (>= 4.152.1)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 4.152.1)
- SkiaSharp.NativeAssets.macOS (>= 4.152.1)
- SkiaSharp.NativeAssets.Win32 (>= 4.152.1)
-
net10.0-android36.0
- bblanchon.PDFium.Android (>= 156.0.8066)
- SkiaSharp (>= 4.152.1)
- SkiaSharp.NativeAssets.Android (>= 4.152.1)
-
net10.0-browser1.0
- SkiaSharp (>= 4.152.1)
- SkiaSharp.NativeAssets.WebAssembly (>= 4.152.1)
- Sungaila.PDFium.BlazorWebAssembly (>= 156.0.8066.1)
-
net10.0-ios26.0
- bblanchon.PDFium.iOS (>= 156.0.8066)
- SkiaSharp (>= 4.152.1)
- SkiaSharp.NativeAssets.iOS (>= 4.152.1)
-
net10.0-maccatalyst26.0
- bblanchon.PDFium.iOS (>= 156.0.8066)
- SkiaSharp (>= 4.152.1)
- SkiaSharp.NativeAssets.MacCatalyst (>= 4.152.1)
-
net11.0
- bblanchon.PDFium.Linux (>= 156.0.8066)
- bblanchon.PDFium.macOS (>= 156.0.8066)
- bblanchon.PDFium.Win32 (>= 156.0.8066)
- SkiaSharp (>= 4.152.1)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 4.152.1)
- SkiaSharp.NativeAssets.macOS (>= 4.152.1)
- SkiaSharp.NativeAssets.Win32 (>= 4.152.1)
-
net11.0-android37.0
- bblanchon.PDFium.Android (>= 156.0.8066)
- SkiaSharp (>= 4.152.1)
- SkiaSharp.NativeAssets.Android (>= 4.152.1)
-
net11.0-browser1.0
- SkiaSharp (>= 4.152.1)
- SkiaSharp.NativeAssets.WebAssembly (>= 4.152.1)
- Sungaila.PDFium.BlazorWebAssembly (>= 156.0.8066.1)
-
net11.0-ios26.5
- bblanchon.PDFium.iOS (>= 156.0.8066)
- SkiaSharp (>= 4.152.1)
- SkiaSharp.NativeAssets.iOS (>= 4.152.1)
-
net11.0-maccatalyst26.5
- bblanchon.PDFium.iOS (>= 156.0.8066)
- SkiaSharp (>= 4.152.1)
- SkiaSharp.NativeAssets.MacCatalyst (>= 4.152.1)
-
net8.0
- bblanchon.PDFium.Linux (>= 156.0.8066)
- bblanchon.PDFium.macOS (>= 156.0.8066)
- bblanchon.PDFium.Win32 (>= 156.0.8066)
- SkiaSharp (>= 4.152.1)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 4.152.1)
- SkiaSharp.NativeAssets.macOS (>= 4.152.1)
- SkiaSharp.NativeAssets.Win32 (>= 4.152.1)
-
net9.0
- bblanchon.PDFium.Linux (>= 156.0.8066)
- bblanchon.PDFium.macOS (>= 156.0.8066)
- bblanchon.PDFium.Win32 (>= 156.0.8066)
- SkiaSharp (>= 4.152.1)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 4.152.1)
- SkiaSharp.NativeAssets.macOS (>= 4.152.1)
- SkiaSharp.NativeAssets.Win32 (>= 4.152.1)
-
net9.0-browser1.0
- SkiaSharp (>= 4.152.1)
- SkiaSharp.NativeAssets.WebAssembly (>= 4.152.1)
- Sungaila.PDFium.BlazorWebAssembly (>= 156.0.8066.1)
NuGet packages (40)
Showing the top 5 NuGet packages that depend on PDFtoImage:
| Package | Downloads |
|---|---|
|
PDFtoZPL
A .NET library to convert PDF files (and bitmaps) into Zebra Programming Language code. |
|
|
NCPC.Documents
Usefull methods to work with Documents |
|
|
ManagedCode.MarkItDown
ManagedCode.MarkItDown converts documents, archives, and URLs into Markdown optimised for LLM and search workflows. Supports HTML, PDF, Office Open XML, EPUB, CSV, JSON, feeds, images, audio, and more with async-first APIs. |
|
|
PdfOcr
Pdf OCR library based on paddle OCR |
|
|
Siliscrypt.PdfTools
Package Description |
GitHub repositories (4)
Showing the top 4 popular GitHub repositories that depend on PDFtoImage:
| Repository | Stars |
|---|---|
|
LANCommander/LANCommander
|
|
|
DSPaul/COMPASS
TTRPG resource manager, bringing all your books, maps, etc. in one place.
|
|
|
pauljoda/Prismedia
Your whole media life in one private, self-hosted library—watch, read, listen, request, and manage across web, iPhone, iPad, and Apple TV.
|
|
|
PaddleOCRCore/PaddleOCRApi
开源、免费、离线PaddleOCR,.NET完整开发套件,一键部署WebAPI 接口,支持 C#/C++/Java/Python/Go等多种开发语言快速集成
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 6.0.0-preview | 29 | 9/28/2026 | |
| 5.4.0 | 253,496 | 8/16/2026 | |
| 5.3.0 | 177,455 | 7/28/2026 | |
| 5.2.1 | 1,066,208 | 4/6/2026 | |
| 5.2.0 | 908,144 | 11/14/2025 | |
| 5.1.1 | 1,040,949 | 6/3/2025 | |
| 5.1.0 | 168,074 | 5/2/2025 | |
| 5.1.0-preview6 | 42,482 | 3/25/2025 | |
| 5.1.0-preview5 | 1,127 | 3/18/2025 | |
| 5.0.0 | 417,960 | 12/7/2024 | |
| 4.1.1 | 822,187 | 9/20/2024 | |
| 4.1.0 | 1,245,770 | 7/24/2024 | |
| 4.0.2 | 144,629 | 6/28/2024 | |
| 4.0.1 | 513,352 | 3/14/2024 |
- Added .NET 11 TargetFramework.
- Updated PDFium and SkiaSharp dependencies.
- Prepared the core library for PDFtoImage.Parallel.