PdfPig.Rendering.Skia 0.1.9.1-alpha002

This is a prerelease version of PdfPig.Rendering.Skia.
There is a newer version of this package available.
See the version list below for details.
dotnet add package PdfPig.Rendering.Skia --version 0.1.9.1-alpha002
                    
NuGet\Install-Package PdfPig.Rendering.Skia -Version 0.1.9.1-alpha002
                    
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="PdfPig.Rendering.Skia" Version="0.1.9.1-alpha002" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PdfPig.Rendering.Skia" Version="0.1.9.1-alpha002" />
                    
Directory.Packages.props
<PackageReference Include="PdfPig.Rendering.Skia" />
                    
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 PdfPig.Rendering.Skia --version 0.1.9.1-alpha002
                    
#r "nuget: PdfPig.Rendering.Skia, 0.1.9.1-alpha002"
                    
#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 PdfPig.Rendering.Skia@0.1.9.1-alpha002
                    
#: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=PdfPig.Rendering.Skia&version=0.1.9.1-alpha002&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=PdfPig.Rendering.Skia&version=0.1.9.1-alpha002&prerelease
                    
Install as a Cake Tool

PdfPig.Rendering.Skia

Render pdf documents as images with PdfPig using SkiaSharp.

This is a very early version and not everything is supported (more to come).

Available as a Prerelease Nuget package https://www.nuget.org/packages/PdfPig.Rendering.Skia/

Uses parts of PDFBox code.

How to use

Save pages as image to disk

using UglyToad.PdfPig.Graphics.Colors;
using UglyToad.PdfPig;
using UglyToad.PdfPig.Rendering.Skia;
using SkiaSharp;

[...]

using (var document = PdfDocument.Open(_path))
{
	string fileName = Path.GetFileName(_path);

	document.AddSkiaPageFactory(); // Same as document.AddPageFactory<SKPicture, SkiaPageFactory>()

	for (int p = 1; p <= document.NumberOfPages; p++)
	{
		using (var fs = new FileStream($"{fileName}_{p}.png", FileMode.Create))
		using (var ms = document.GetPageAsPng(p, _scale, RGBColor.White))
		{
			ms.WriteTo(fs);
		}
	}
}

Get the SKBitmap from a page

using UglyToad.PdfPig.Graphics.Colors;
using UglyToad.PdfPig;
using UglyToad.PdfPig.Rendering.Skia;
using SkiaSharp;

[...]

using (var document = PdfDocument.Open(_path))
{
	document.AddSkiaPageFactory(); // Same as document.AddPageFactory<SKPicture, SkiaPageFactory>()

	for (int p = 1; p <= document.NumberOfPages; p++)
	{
		var bitmap = document.GetPageAsSKBitmap(p, _scale, RGBColor.White);
		// Use the SKBitmap
	}
}

Get the SKPicture from a page

using UglyToad.PdfPig.Graphics.Colors;
using UglyToad.PdfPig;
using UglyToad.PdfPig.Rendering.Skia;
using SkiaSharp;

[...]

using (var document = PdfDocument.Open(_path))
{
	document.AddSkiaPageFactory(); // Same as document.AddPageFactory<SKPicture, SkiaPageFactory>()

	for (int p = 1; p <= document.NumberOfPages; p++)
	{
		var picture = document.GetPage<SKPicture>(p);
		// Use the SKPicture
	}
}
Product 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 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 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 net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on PdfPig.Rendering.Skia:

Package Downloads
RAG.Parsers.Pdf

Helper library that let you generate Word document based on markdown files.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.11.1-alpha013 15 7/19/2025
0.1.11.1-alpha012 222 6/7/2025
0.1.11.1-alpha011 131 5/30/2025
0.1.11.1-alpha010 992 5/18/2025
0.1.11.1-alpha009 233 5/13/2025
0.1.11.1-alpha008 139 5/11/2025
0.1.11.1-alpha007 72 5/10/2025
0.1.11.1-alpha006 85 5/9/2025
0.1.11.1-alpha005 158 5/5/2025
0.1.11.1-alpha004 84 5/2/2025
0.1.11.1-alpha003 167 4/24/2025
0.1.11.1-alpha002 661 3/30/2025
0.1.11.1-alpha001 148 3/30/2025
0.1.10.4 3,053 5/5/2025
0.1.10.3 154 5/2/2025
0.1.10.2 4,759 3/15/2025
0.1.10.2-alpha003 183 3/9/2025
0.1.10.2-alpha002 173 3/9/2025
0.1.10.2-alpha001 144 3/8/2025
0.1.10.1 2,500 3/8/2025
0.1.10.1-alpha008 107 2/26/2025
0.1.10.1-alpha007 147 2/23/2025
0.1.10.1-alpha006 100 2/22/2025
0.1.10.1-alpha005 113 2/16/2025
0.1.10.1-alpha004 118 2/16/2025
0.1.10.1-alpha003 110 2/15/2025
0.1.10.1-alpha001 168 1/26/2025
0.1.9.5 902 2/15/2025
0.1.9.4 9,559 12/28/2024
0.1.9.3 2,114 11/10/2024
0.1.9.2 467 10/29/2024
0.1.9.1 2,890 10/6/2024
0.1.9.1-alpha007 211 8/25/2024
0.1.9.1-alpha006 122 8/23/2024
0.1.9.1-alpha005 5,614 5/25/2024
0.1.9.1-alpha004 148 4/1/2024
0.1.9.1-alpha003 130 3/18/2024
0.1.9.1-alpha002 382 2/19/2024
0.1.9.1-alpha001 118 2/18/2024