PdfPig.Rendering.Skia 0.1.11.1

dotnet add package PdfPig.Rendering.Skia --version 0.1.11.1
                    
NuGet\Install-Package PdfPig.Rendering.Skia -Version 0.1.11.1
                    
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.11.1" />
                    
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.11.1" />
                    
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.11.1
                    
#r "nuget: PdfPig.Rendering.Skia, 0.1.11.1"
                    
#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.11.1
                    
#: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.11.1
                    
Install as a Cake Addin
#tool nuget:?package=PdfPig.Rendering.Skia&version=0.1.11.1
                    
Install as a Cake Tool

PdfPig.Rendering.Skia

Cross-platform library to 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 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 is compatible.  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 (1)

Showing the top 1 popular GitHub repositories that depend on PdfPig.Rendering.Skia:

Repository Stars
CalyPdf/Caly
Cross-platform pdf reader application
Version Downloads Last Updated
0.1.11.1 268 7/27/2025
0.1.11.1-alpha013 217 7/19/2025
0.1.11.1-alpha012 224 6/7/2025
0.1.11.1-alpha011 132 5/30/2025
0.1.11.1-alpha010 1,019 5/18/2025
0.1.11.1-alpha009 234 5/13/2025
0.1.11.1-alpha008 140 5/11/2025
0.1.11.1-alpha007 73 5/10/2025
0.1.11.1-alpha006 87 5/9/2025
0.1.11.1-alpha005 159 5/5/2025
0.1.11.1-alpha004 85 5/2/2025
0.1.11.1-alpha003 168 4/24/2025
0.1.11.1-alpha002 662 3/30/2025
0.1.11.1-alpha001 150 3/30/2025
0.1.10.4 3,978 5/5/2025
0.1.10.3 156 5/2/2025
0.1.10.2 5,529 3/15/2025
0.1.10.2-alpha003 184 3/9/2025
0.1.10.2-alpha002 176 3/9/2025
0.1.10.2-alpha001 146 3/8/2025
0.1.10.1 2,502 3/8/2025
0.1.10.1-alpha008 108 2/26/2025
0.1.10.1-alpha007 150 2/23/2025
0.1.10.1-alpha006 101 2/22/2025
0.1.10.1-alpha005 115 2/16/2025
0.1.10.1-alpha004 119 2/16/2025
0.1.10.1-alpha003 113 2/15/2025
0.1.10.1-alpha001 169 1/26/2025
0.1.9.5 904 2/15/2025
0.1.9.4 9,564 12/28/2024
0.1.9.3 2,145 11/10/2024
0.1.9.2 471 10/29/2024
0.1.9.1 2,893 10/6/2024
0.1.9.1-alpha007 213 8/25/2024
0.1.9.1-alpha006 123 8/23/2024
0.1.9.1-alpha005 5,615 5/25/2024
0.1.9.1-alpha004 150 4/1/2024
0.1.9.1-alpha003 134 3/18/2024
0.1.9.1-alpha002 384 2/19/2024
0.1.9.1-alpha001 119 2/18/2024