PdfBox.Net.Layout
0.1.1
dotnet add package PdfBox.Net.Layout --version 0.1.1
NuGet\Install-Package PdfBox.Net.Layout -Version 0.1.1
<PackageReference Include="PdfBox.Net.Layout" Version="0.1.1" />
<PackageVersion Include="PdfBox.Net.Layout" Version="0.1.1" />
<PackageReference Include="PdfBox.Net.Layout" />
paket add PdfBox.Net.Layout --version 0.1.1
#r "nuget: PdfBox.Net.Layout, 0.1.1"
#:package PdfBox.Net.Layout@0.1.1
#addin nuget:?package=PdfBox.Net.Layout&version=0.1.1
#tool nuget:?package=PdfBox.Net.Layout&version=0.1.1
PdfBox.Net.Layout
PdfBox.Net.Layout extracts a PDF into a renderer-independent page-layout
model containing text, reading-order structures, links, forms, vector paths,
images, optional browser assets, and conversion diagnostics.
Install
dotnet add package PdfBox.Net.Layout
Basic usage
using PdfBox.Net.Layout;
using PdfBox.Net.PDModel;
using PDDocument pdf = Loader.LoadPDF("input.pdf");
PdfLayoutDocument layout = PdfLayoutExtractor.Extract(pdf, new PdfLayoutOptions
{
IncludeText = true,
IncludeLinks = true,
IncludeImages = true,
IncludePaths = true
});
foreach (PdfLayoutPage page in layout.Pages)
{
Console.WriteLine($"Page {page.PageNumber}: {page.Text}");
}
Image placements can be collected without exporting image assets. When
IncludeImageAssets is enabled, ImageExportPolicy controls whether an
unsupported image degrades with a diagnostic, fails strictly, or requires a
registered rendering backend.
This package does not register a rendering backend. Applications that need
image conversion or raster fallbacks can reference PdfBox.Net.SkiaSharp or
PdfBox.Net.ImageMagick and register that provider during startup.
Use PdfBox.Net.Html when the desired result is HTML rather than the layout
model itself.
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.Core (>= 4.0.0-preview.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on PdfBox.Net.Layout:
| Package | Downloads |
|---|---|
|
PdfBox.Net.Html
Fixed-layout HTML conversion for PdfBox.Net layout documents. |
GitHub repositories
This package is not used by any popular GitHub repositories.