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 with cancellation and a page-boundary callback.
public void Render(ILaidOutDocument document, Stream output, RenderOptions options, IConversionDiagnostics diagnostics, CancellationToken cancellationToken, Action<int, int>? pageBoundaryCallback)
Parameters
documentILaidOutDocumentThe laid-out document.
outputStreamThe stream for the single-page path; unused when a page stream factory is set.
optionsRenderOptionsThe render options.
diagnosticsIConversionDiagnosticsThe diagnostics sink.
cancellationTokenCancellationTokenCancels between pages.
pageBoundaryCallbackAction<int, int>Receives (completed, total) after each page.
Exceptions
- ArgumentNullException
An argument is null.
- OperationCanceledException
Cancellation was requested.