Table of Contents

Interface IPdfPageRasterizer

Namespace
PdfEngine.Vector.PdfA
Assembly
PdfEngine.Vector.dll

Draws a page to opaque pixels for transparency flattening. The core has no rasterizer of its own; the composition root supplies one (the Direct2D renderer, with PDFium for pages the vector engine cannot draw by itself).

public interface IPdfPageRasterizer

Methods

Render(PdfVectorDocument, byte[], int, int, int, PdfPixelWindow)

The pixels of window of the page drawn over white, unrotated, its crop box filling exactly pageWidthPixels × pageHeightPixels, without annotations; or null when it cannot be drawn faithfully.

PdfRasterImage? Render(PdfVectorDocument document, byte[] bytes, int pageNumber, int pageWidthPixels, int pageHeightPixels, PdfPixelWindow window)

Parameters

document PdfVectorDocument
bytes byte[]

The file document was opened from (for a renderer that reads it itself).

pageNumber int
pageWidthPixels int
pageHeightPixels int
window PdfPixelWindow

Returns

PdfRasterImage