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
<PackageReference Include="PdfBox.Net.Html" Version="0.1.1" />
<PackageVersion Include="PdfBox.Net.Html" Version="0.1.1" />
<PackageReference Include="PdfBox.Net.Html" />
paket add PdfBox.Net.Html --version 0.1.1
#r "nuget: PdfBox.Net.Html, 0.1.1"
#:package PdfBox.Net.Html@0.1.1
#addin nuget:?package=PdfBox.Net.Html&version=0.1.1
#tool nuget:?package=PdfBox.Net.Html&version=0.1.1
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 | Versions 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. |
-
net10.0
- PdfBox.Net.Layout (>= 0.1.1)
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 |