Method Render
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
documentILaidOutDocumentThe laid-out document.
outputStreamThe stream to write to, forward-only.
optionsRenderOptionsThe render options.
diagnosticsIConversionDiagnosticsThe 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
documentILaidOutDocumentThe laid-out document.
outputStreamThe output stream.
optionsRenderOptionsRender options.
diagnosticsIConversionDiagnosticsDiagnostics sink.
cancellationTokenCancellationTokenCancellation token checked at page boundaries and during write-out.
pageBoundaryCallbackAction<int, int>Optional callback invoked after each rendered page.