PDFtoImage 4.0.0-preview
See the version list below for details.
dotnet add package PDFtoImage --version 4.0.0-preview
NuGet\Install-Package PDFtoImage -Version 4.0.0-preview
<PackageReference Include="PDFtoImage" Version="4.0.0-preview" />
paket add PDFtoImage --version 4.0.0-preview
#r "nuget: PDFtoImage, 4.0.0-preview"
// Install PDFtoImage as a Cake Addin #addin nuget:?package=PDFtoImage&version=4.0.0-preview&prerelease // Install PDFtoImage as a Cake Tool #tool nuget:?package=PDFtoImage&version=4.0.0-preview&prerelease
PDFtoImage
A .NET library to render PDF files into images.
This .NET library is built on top of
Getting started
Call a static method from PDFtoImage.Conversion
:
SaveJpeg
, SavePng
, SaveWebp
and ToImage
for a single page.
ToImages
and ToImagesAsync
for multiple pages.
Note: SkiaSharp.SKBitmap
can be exported with the Encode
method.
Unity project installation
- Open your project and navigate to
Window
→Package Manager
. - Click on the
+
button (top-left corner) and selectAdd package from git URL...
. - Enter the following URL and confirm with the
Add
button:
https://github.com/sungaila/PDFtoImage.git?path=etc/UnityPackage
Breaking changes in v4.0.0
Starting with v4.0.0 the struct RenderOptions
is used for most methods. This is a breaking change when updating from v3.1.0 and older.
Option 1: Migrate to new API
// this will not compile anymore
PDFtoImage.Conversion.SaveJpeg("image.jpg", pdfStream, dpi: 300, rotation: PdfRotation.Rotate90);
// use this instead
PDFtoImage.Conversion.SaveJpeg("image.jpg", pdfStream, options: new(Dpi: 300, Rotation: PdfRotation.Rotate90));
Option 2: Change namespace
Note: This namespace is used for backward compatibility and will be removed in a future version.
using PDFtoImage;
using Conversion = PDFtoImage.Compatibility.Conversion;
Supported runtimes
Tested and supported frameworks
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. 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-android33.0 is compatible. 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-android34.0 is compatible. 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. |
.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 | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 is compatible. net472 was computed. net48 was computed. net481 is compatible. |
MonoAndroid | monoandroid was computed. monoandroid10.0 is compatible. |
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.2
- bblanchon.PDFium.Linux (>= 124.0.6322)
- bblanchon.PDFium.macOS (>= 124.0.6322)
- bblanchon.PDFium.Win32 (>= 124.0.6322)
- SkiaSharp (>= 2.88.7)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 2.88.7)
- SkiaSharp.NativeAssets.macOS (>= 2.88.7)
- SkiaSharp.NativeAssets.Win32 (>= 2.88.7)
-
.NETFramework 4.7.1
- bblanchon.PDFium.Linux (>= 124.0.6322)
- bblanchon.PDFium.macOS (>= 124.0.6322)
- bblanchon.PDFium.Win32 (>= 124.0.6322)
- SkiaSharp (>= 2.88.7)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 2.88.7)
- SkiaSharp.NativeAssets.macOS (>= 2.88.7)
- SkiaSharp.NativeAssets.Win32 (>= 2.88.7)
-
.NETFramework 4.8.1
- bblanchon.PDFium.Linux (>= 124.0.6322)
- bblanchon.PDFium.macOS (>= 124.0.6322)
- bblanchon.PDFium.Win32 (>= 124.0.6322)
- SkiaSharp (>= 2.88.7)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 2.88.7)
- SkiaSharp.NativeAssets.macOS (>= 2.88.7)
- SkiaSharp.NativeAssets.Win32 (>= 2.88.7)
-
.NETStandard 2.0
- bblanchon.PDFium.Linux (>= 124.0.6322)
- bblanchon.PDFium.macOS (>= 124.0.6322)
- bblanchon.PDFium.Win32 (>= 124.0.6322)
- SkiaSharp (>= 2.88.7)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 2.88.7)
- SkiaSharp.NativeAssets.macOS (>= 2.88.7)
- SkiaSharp.NativeAssets.Win32 (>= 2.88.7)
-
MonoAndroid 10.0
- bblanchon.PDFium.Android (>= 124.0.6322)
- SkiaSharp (>= 2.88.7)
- SkiaSharp.NativeAssets.Android (>= 2.88.7)
-
net6.0
- bblanchon.PDFium.Linux (>= 124.0.6322)
- bblanchon.PDFium.macOS (>= 124.0.6322)
- bblanchon.PDFium.Win32 (>= 124.0.6322)
- SkiaSharp (>= 2.88.7)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 2.88.7)
- SkiaSharp.NativeAssets.macOS (>= 2.88.7)
- SkiaSharp.NativeAssets.Win32 (>= 2.88.7)
-
net7.0
- bblanchon.PDFium.Linux (>= 124.0.6322)
- bblanchon.PDFium.macOS (>= 124.0.6322)
- bblanchon.PDFium.Win32 (>= 124.0.6322)
- SkiaSharp (>= 2.88.7)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 2.88.7)
- SkiaSharp.NativeAssets.macOS (>= 2.88.7)
- SkiaSharp.NativeAssets.WebAssembly (>= 2.88.7)
- SkiaSharp.NativeAssets.Win32 (>= 2.88.7)
- Sungaila.PDFium.BlazorWebAssembly (>= 124.0.6322)
-
net7.0-android33.0
- bblanchon.PDFium.Android (>= 124.0.6322)
- SkiaSharp (>= 2.88.7)
- SkiaSharp.NativeAssets.Android (>= 2.88.7)
-
net8.0
- bblanchon.PDFium.Linux (>= 124.0.6322)
- bblanchon.PDFium.macOS (>= 124.0.6322)
- bblanchon.PDFium.Win32 (>= 124.0.6322)
- SkiaSharp (>= 2.88.7)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 2.88.7)
- SkiaSharp.NativeAssets.macOS (>= 2.88.7)
- SkiaSharp.NativeAssets.WebAssembly (>= 2.88.7)
- SkiaSharp.NativeAssets.Win32 (>= 2.88.7)
- Sungaila.PDFium.BlazorWebAssembly (>= 124.0.6322)
-
net8.0-android34.0
- bblanchon.PDFium.Android (>= 124.0.6322)
- SkiaSharp (>= 2.88.7)
- SkiaSharp.NativeAssets.Android (>= 2.88.7)
NuGet packages (10)
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 |
|
Siliscrypt.PdfTools
Package Description |
|
PdfOcr
Pdf OCR library based on paddle OCR |
|
ComicMeta
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
5.0.0 | 3,960 | 12/7/2024 | |
5.0.0-preview.2 | 475 | 11/8/2024 | |
5.0.0-preview | 460 | 10/18/2024 | |
4.1.1 | 94,833 | 9/20/2024 | |
4.1.0 | 179,563 | 7/24/2024 | |
4.0.2 | 39,709 | 6/28/2024 | |
4.0.1 | 193,748 | 3/14/2024 | |
4.0.0 | 24,182 | 2/29/2024 | |
4.0.0-preview | 119 | 2/27/2024 | |
3.1.0 | 53,066 | 1/29/2024 | |
3.0.0 | 18,119 | 12/28/2023 | |
2.4.3 | 59,828 | 11/19/2023 | |
2.4.2 | 39,875 | 10/11/2023 | |
2.4.1 | 16,621 | 9/25/2023 | |
2.4.0 | 20,236 | 9/3/2023 | |
2.3.2 | 2,385 | 8/26/2023 | |
2.3.1 | 19,102 | 7/30/2023 | |
2.3.0 | 3,314 | 7/19/2023 | |
2.2.0 | 189,109 | 2/2/2023 | |
2.1.3 | 15,987 | 1/19/2023 | |
2.1.2 | 111,424 | 7/22/2022 | |
2.1.1 | 14,883 | 6/22/2022 | |
2.1.0 | 6,839 | 5/27/2022 | |
2.0.0 | 788 | 5/25/2022 | |
2.0.0-preview5 | 11,665 | 2/8/2022 | |
2.0.0-preview | 6,269 | 1/2/2022 | |
1.2.1 | 118,158 | 11/10/2021 | |
1.2.0 | 21,841 | 10/10/2021 | |
1.1.3 | 4,149 | 8/26/2021 | |
1.1.2 | 817 | 8/19/2021 | |
1.1.1 | 4,781 | 8/13/2021 | |
1.1.1-preview | 472 | 7/29/2021 | |
1.1.0 | 28,844 | 6/17/2021 | |
1.0.1 | 5,168 | 5/29/2021 | |
1.0.0 | 6,470 | 3/21/2021 |
- Added optional parameter Bounds.
- RenderOptions introduced for most API calls. This is a breaking change, see README for more information.