Table of Contents

Class PdfRasterizer

Namespace
DocWright.Formats.Pdf.Raster
Assembly
DocWright.Formats.Pdf.dll

Renders the pages of an opened PDF to images.

public static class PdfRasterizer
Inheritance
PdfRasterizer
Inherited Members

Remarks

Stateless and static: all the state is in the document, and the document is the thing that must not be shared between threads.

Pages are produced lazily, one at a time. A 400-page document rendered at 300 DPI is about 10 GB of pixels if every page is held at once and about 25 MB if one is, and the caller almost always writes each page out before asking for the next.

Methods

Render(PdfDocument, PdfRasterOptions?)

Renders the selected pages.

RenderPage(PdfDocument, int, PdfRasterOptions?)

Renders one page and returns its encoded bytes.