PdfBox.Net.SkiaSharp 4.0.0-preview.4

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

PdfBox.Net.SkiaSharp

Complete cross-platform SkiaSharp rendering and glyph layout backend for PdfBox.Net.

Install:

dotnet add package PdfBox.Net.SkiaSharp

Register the backend once at application startup before using PDFRenderer or APIs that need bitmap/image encoding:

using PdfBox.Net.Loader;
using PdfBox.Net.Rendering;

SkiaRenderingBackend.Register();

using PDDocument document = Loader.LoadPDF("input.pdf");
BufferedImage image = new PDFRenderer(document).RenderImageWithDPI(0, 144);

For text that needs glyph shaping, register the SkiaSharp glyph layout processor on the content stream and load the Type 0 font through the processor:

using PdfBox.Net.GlyphLayout.SkiaSharp;
using PdfBox.Net.PDModel;
using PdfBox.Net.PDModel.Font;

using PDDocument document = new();
PDPage page = new();
document.AddPage(page);

using SkiaGlyphLayoutProcessor glyphLayout = new();
using Stream fontStream = File.OpenRead("NotoSans-Regular.ttf");
PDType0Font font = glyphLayout.LoadFont(document, fontStream,
    new SkiaGlyphLayoutProcessor.FontOptions()
        .SetKerningOn()
        .SetLigaturesOn());

using PDPageContentStream contents = new(document, page);
contents.BeginText();
contents.SetFont(font, 12);
contents.SetGlyphLayoutProcessor(glyphLayout);
contents.ShowText("AV office");
contents.EndText();

Glyph layout uses Unicode.Bidi and HarfBuzzSharp internally. These dependencies stay in this optional backend package; PdfBox.Net.Core continues to expose only the Java-shaped PDFBox glyph layout interfaces.

This shapes generated content streams that opt into the processor. Existing PDF page rendering still follows the glyph codes and positions already present in the PDF content stream. The processor resolves bidirectional visual runs with Unicode.Bidi before shaping each run with HarfBuzz.

This package intentionally owns the SkiaSharp dependency so the core PdfBox.Net.Core package can keep Java-shaped graphics proxy APIs without exposing SkiaSharp types directly.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
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 PdfBox.Net.SkiaSharp:

Package Downloads
PdfBox.Net.Rendering

Convenience package that registers the supported PdfBox.Net SkiaSharp renderer and ImageMagick image/color providers.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.0-preview.6 0 7/17/2026
4.0.0-preview.5 61 7/15/2026
4.0.0-preview.4 60 7/15/2026
4.0.0-preview.3 103 7/14/2026
4.0.0-preview.2 72 7/7/2026
4.0.0-preview.1 52 7/2/2026
3.0.8-preview.1 52 7/2/2026

Tracks Apache PDFBox apache/pdfbox trunk (4.0.0-SNAPSHOT).