Interface IPdfRenderer
Engine-neutral PDF page rasterization contract.
public interface IPdfRenderer
Methods
RenderPageAsync(IPdfDocument, RenderRequest, CancellationToken)
Renders a page of document to BGRA pixels.
ValueTask<RenderedPage> RenderPageAsync(IPdfDocument document, RenderRequest request, CancellationToken cancellationToken = default)
Parameters
documentIPdfDocumentAn open document of this engine.
requestRenderRequestThe page, resolution and rotation.
cancellationTokenCancellationTokenCancels the render.
Returns
- ValueTask<RenderedPage>
The pixels. Dispose the result to release its buffer.