Table of Contents

Class PdfRenderResult

Namespace
NetPdf
Assembly
NetPdf.dll

Detailed result returned by ConvertDetailed(string, HtmlPdfOptions?). Pair with the simple Convert(string, HtmlPdfOptions?) overload when you don't care about metrics; this is the dashboard / observability surface.

public sealed class PdfRenderResult
Inheritance
PdfRenderResult
Inherited Members

Properties

LayoutMetrics

Layout-stage metrics.

public required LayoutMetrics LayoutMetrics { get; init; }

Property Value

LayoutMetrics

PageCount

Number of pages in the produced PDF.

public required int PageCount { get; init; }

Property Value

int

Pdf

The PDF bytes.

public required byte[] Pdf { get; init; }

Property Value

byte[]

ResourceFailures

Resources referenced by HTML/CSS that failed to load.

public required IReadOnlyList<ResourceFailure> ResourceFailures { get; init; }

Property Value

IReadOnlyList<ResourceFailure>

Timing

Per-stage wall-clock timings.

public required TimingBreakdown Timing { get; init; }

Property Value

TimingBreakdown

UnsupportedFeatures

Distinct unsupported features encountered (parsed but not rendered).

public required IReadOnlyList<UnsupportedFeature> UnsupportedFeatures { get; init; }

Property Value

IReadOnlyList<UnsupportedFeature>

Warnings

All non-fatal diagnostics emitted during conversion.

public required IReadOnlyList<Diagnostic> Warnings { get; init; }

Property Value

IReadOnlyList<Diagnostic>