Interface IPdfPageRasterizer
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
documentPdfVectorDocumentbytesbyte[]The file
documentwas opened from (for a renderer that reads it itself).pageNumberintpageWidthPixelsintpageHeightPixelsintwindowPdfPixelWindow