PdfBox.Net.Html 0.1.1

dotnet add package PdfBox.Net.Html --version 0.1.1
                    
NuGet\Install-Package PdfBox.Net.Html -Version 0.1.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="PdfBox.Net.Html" Version="0.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PdfBox.Net.Html" Version="0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="PdfBox.Net.Html" />
                    
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.Html --version 0.1.1
                    
#r "nuget: PdfBox.Net.Html, 0.1.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 PdfBox.Net.Html@0.1.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=PdfBox.Net.Html&version=0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=PdfBox.Net.Html&version=0.1.1
                    
Install as a Cake Tool

PdfBox.Net.Html

PdfBox.Net.Html converts a PdfBox.Net.Layout document into fixed-layout or semantic HTML, CSS, fonts, and image assets.

Install

dotnet add package PdfBox.Net.Html

Convert a PDF

using PdfBox.Net.Html;
using PdfBox.Net.Layout;
using PdfBox.Net.PDModel;

using PDDocument pdf = Loader.LoadPDF("input.pdf");
PdfLayoutDocument layout = PdfLayoutExtractor.Extract(pdf, new PdfLayoutOptions
{
    IncludeFontAssets = true,
    IncludeImageAssets = true
});

PdfHtmlDocument html = PdfHtmlConverter.Convert(layout, new PdfHtmlOptions
{
    Title = "Converted document",
    TextMode = PdfHtmlTextMode.Semantic,
    SemanticPageMode = PdfHtmlSemanticPageMode.ContinuousFlow
});

html.WriteToDirectory("output");

The default text mode preserves source positioning. Semantic mode infers reading order and document structure and can use fixed pages or a continuous flow. The generated PdfHtmlDocument exposes the HTML, CSS, and binary assets directly as well as WriteToDirectory.

For images and raster fallbacks, register a rendering provider such as PdfBox.Net.SkiaSharp or PdfBox.Net.ImageMagick before extraction. Without a suitable backend, the layout image policy determines whether unsupported assets degrade with diagnostics or fail conversion.

PDF-to-HTML conversion is approximate; inspect PdfLayoutDocument.Diagnostics when fidelity matters.

Source and issues are available at github.com/erikbra/unpdf.

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.1 86 7/15/2026
0.1.0 88 7/15/2026
0.1.0-preview.1 42 7/15/2026