Table of Contents

Interface IPdfRenderer

Namespace
PdfEngine.Rendering
Assembly
PdfEngine.Abstractions.dll

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

document IPdfDocument

An open document of this engine.

request RenderRequest

The page, resolution and rotation.

cancellationToken CancellationToken

Cancels the render.

Returns

ValueTask<RenderedPage>

The pixels. Dispose the result to release its buffer.