PdfPig.Rendering.Skia 0.1.11.1-alpha006

This is a prerelease version of PdfPig.Rendering.Skia.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package PdfPig.Rendering.Skia --version 0.1.11.1-alpha006
                    
NuGet\Install-Package PdfPig.Rendering.Skia -Version 0.1.11.1-alpha006
                    
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-alpha006" />
                    
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-alpha006" />
                    
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-alpha006
                    
#r "nuget: PdfPig.Rendering.Skia, 0.1.11.1-alpha006"
                    
#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-alpha006
                    
#: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-alpha006&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=PdfPig.Rendering.Skia&version=0.1.11.1-alpha006&prerelease
                    
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

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.11.1-alpha012 147 6/7/2025
0.1.11.1-alpha011 128 5/30/2025
0.1.11.1-alpha010 957 5/18/2025
0.1.11.1-alpha009 230 5/13/2025
0.1.11.1-alpha008 135 5/11/2025
0.1.11.1-alpha007 70 5/10/2025
0.1.11.1-alpha006 83 5/9/2025
0.1.11.1-alpha005 153 5/5/2025
0.1.11.1-alpha004 82 5/2/2025
0.1.11.1-alpha003 165 4/24/2025
0.1.11.1-alpha002 660 3/30/2025
0.1.11.1-alpha001 146 3/30/2025
0.1.10.4 2,940 5/5/2025
0.1.10.3 150 5/2/2025
0.1.10.2 4,640 3/15/2025
0.1.10.2-alpha003 182 3/9/2025
0.1.10.2-alpha002 172 3/9/2025
0.1.10.2-alpha001 141 3/8/2025
0.1.10.1 2,462 3/8/2025
0.1.10.1-alpha008 105 2/26/2025
0.1.10.1-alpha007 145 2/23/2025
0.1.10.1-alpha006 97 2/22/2025
0.1.10.1-alpha005 111 2/16/2025
0.1.10.1-alpha004 117 2/16/2025
0.1.10.1-alpha003 109 2/15/2025
0.1.10.1-alpha001 167 1/26/2025
0.1.9.5 888 2/15/2025
0.1.9.4 9,407 12/28/2024
0.1.9.3 2,098 11/10/2024
0.1.9.2 466 10/29/2024
0.1.9.1 2,889 10/6/2024
0.1.9.1-alpha007 210 8/25/2024
0.1.9.1-alpha006 121 8/23/2024
0.1.9.1-alpha005 5,613 5/25/2024
0.1.9.1-alpha004 146 4/1/2024
0.1.9.1-alpha003 129 3/18/2024
0.1.9.1-alpha002 380 2/19/2024
0.1.9.1-alpha001 116 2/18/2024