PDFtoImage 6.0.0-preview

This is a prerelease version of PDFtoImage.
dotnet add package PDFtoImage --version 6.0.0-preview
                    
NuGet\Install-Package PDFtoImage -Version 6.0.0-preview
                    
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="PDFtoImage" Version="6.0.0-preview" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PDFtoImage" Version="6.0.0-preview" />
                    
Directory.Packages.props
<PackageReference Include="PDFtoImage" />
                    
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 PDFtoImage --version 6.0.0-preview
                    
#r "nuget: PDFtoImage, 6.0.0-preview"
                    
#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 PDFtoImage@6.0.0-preview
                    
#: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=PDFtoImage&version=6.0.0-preview&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=PDFtoImage&version=6.0.0-preview&prerelease
                    
Install as a Cake Tool

PDFtoImage Logo PDFtoImage

NuGet version NuGet downloads Website GitHub license

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

  1. Open your project and navigate to Window → Package Management → Package Manager.
  2. Click on the + button (top-left corner) and select Install package from git URL....
  3. Enter the following URL and confirm with the Install button:
https://github.com/sungaila/PDFtoImage.git?path=etc/UnityPackage

Supported runtimes

Tested and supported frameworks

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.Index
  • System.Range
  • System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute
  • System.Diagnostics.CodeAnalysis.NotNullWhenAttribute
  • System.Runtime.CompilerServices.IsExternalInit
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 5.0.0 is deprecated.
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
Loading failed

- Added .NET 11 TargetFramework.
- Updated PDFium and SkiaSharp dependencies.
- Prepared the core library for PDFtoImage.Parallel.