Table of Contents

Method RenderPage

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

RenderPage(PdfDocument, int, PdfRasterOptions?)

Renders one page and returns its encoded bytes.

public static PdfRenderedPage RenderPage(PdfDocument document, int pageNumber, PdfRasterOptions? options = null)

Parameters

document PdfDocument

The opened document.

pageNumber int

The one-based page number.

options PdfRasterOptions

Raster options, or null for the defaults.

Returns

PdfRenderedPage

The rendered page.

Exceptions

ArgumentNullException

document is null.

ArgumentOutOfRangeException

The page number is outside the document.