Table of Contents

Method Render

Namespace
DocWright.Renderers.Pdf
Assembly
DocWright.Renderers.Pdf.dll

Render(ILaidOutDocument, Stream, RenderOptions, IConversionDiagnostics)

Renders the document to the output stream in a single forward-only pass.

public void Render(ILaidOutDocument document, Stream output, RenderOptions options, IConversionDiagnostics diagnostics)

Parameters

document ILaidOutDocument

The laid-out document.

output Stream

The stream to write to, forward-only.

options RenderOptions

The render options.

diagnostics IConversionDiagnostics

The diagnostics sink.

Render(ILaidOutDocument, Stream, RenderOptions, IConversionDiagnostics, CancellationToken, Action<int, int>?)

Renders the document while honoring cancellation checks at page boundaries.

public void Render(ILaidOutDocument document, Stream output, RenderOptions options, IConversionDiagnostics diagnostics, CancellationToken cancellationToken, Action<int, int>? pageBoundaryCallback = null)

Parameters

document ILaidOutDocument

The laid-out document.

output Stream

The output stream.

options RenderOptions

Render options.

diagnostics IConversionDiagnostics

Diagnostics sink.

cancellationToken CancellationToken

Cancellation token checked at page boundaries and during write-out.

pageBoundaryCallback Action<int, int>

Optional callback invoked after each rendered page.