# PdfPageRenderOptions

Options for bounded page-range and thumbnail rendering.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfPageRenderOptions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Rendering/PdfPageRenderOptions.cs#L22)

**Base**

`OfficeImageExportOptions`

**Modifiers**

sealed

Options for bounded page-range and thumbnail rendering.

## Inheritance

- OfficeImageExportOptions
- PdfPageRenderOptions

## Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 3

- Method [PdfDocument.AssessRenderCompatibility](/api/pdf/officeimo-pdf-pdfdocument/#method-assessrendercompatibility-officeimo-pdf-pdfloadoptions-officeimo-pdf-pdfpagerenderoptions) parameter `renderOptions`
- Method [PdfDocumentRenderer.CapabilityDiagnostics](/api/pdf/officeimo-pdf-pdfdocumentrenderer/#method-capabilitydiagnostics-int32-officeimo-pdf-pdfpagerenderoptions) parameter `options`
- Method [PdfDocumentRenderer.Pages](/api/pdf/officeimo-pdf-pdfdocumentrenderer/#method-pages-officeimo-pdf-pdfpageselection-officeimo-pdf-pdfpagerenderoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public PdfPageRenderOptions()` [#](#constructor-ctor)

[PdfPageRenderOptions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Rendering/PdfPageRenderOptions.cs#L22)

Creates legacy page-render options with fail-fast pixel-limit behavior.

## Inherited Methods

`public OfficeImageExportResult EnsureAccepted(OfficeImageExportResult result)` [#](#method-ensureaccepted-officeimageexportresult)

Inherited from OfficeImageExportOptions

Parameters

**result OfficeImageExportResult required**

Returns

`OfficeImageExportResult`

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public double GetEffectiveScale(double logicalWidth, double logicalHeight)` [#](#method-geteffectivescale-double-double)

Inherited from OfficeImageExportOptions

Parameters

**logicalWidth double required**

**logicalHeight double required**

Returns

`double`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public double? Dpi { get; set; }` [#](#property-dpi)

[PdfPageRenderOptions.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Rendering/PdfPageRenderOptions.cs#L13)

Optional target DPI, converted from PDF's 72 points per inch.

`public OfficeColor Background { get; set; }` [#](#property-background)

[PdfPageRenderOptions.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Rendering/PdfPageRenderOptions.cs#L16)

PNG background color.

`public int? ThumbnailMaxDimension { get; set; }` [#](#property-thumbnailmaxdimension)

[PdfPageRenderOptions.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Rendering/PdfPageRenderOptions.cs#L20)

Optional maximum thumbnail width or height in pixels.

`public int MaxPages { get; set; }` [#](#property-maxpages)

[PdfPageRenderOptions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Rendering/PdfPageRenderOptions.cs#L22)

Maximum pages rendered by one call.

`public long MaxPixelsPerPage { get; set; }` [#](#property-maxpixelsperpage)

[PdfPageRenderOptions.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Rendering/PdfPageRenderOptions.cs#L25)

Maximum output pixels for one page.

`public long MaxOutputBytesPerPage { get; set; }` [#](#property-maxoutputbytesperpage)

[PdfPageRenderOptions.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Rendering/PdfPageRenderOptions.cs#L29)

Maximum encoded output bytes retained for one page.

`public long MaxTotalOutputBytes { get; set; }` [#](#property-maxtotaloutputbytes)

[PdfPageRenderOptions.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Rendering/PdfPageRenderOptions.cs#L31)

Maximum aggregate encoded output bytes retained for one batch.

`public int MaxDiagnosticsPerPage { get; set; }` [#](#property-maxdiagnosticsperpage)

[PdfPageRenderOptions.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Rendering/PdfPageRenderOptions.cs#L33)

Maximum distinct capability diagnostics retained while rendering one page.

`public int MaxDiagnosticCharactersPerPage { get; set; }` [#](#property-maxdiagnosticcharactersperpage)

[PdfPageRenderOptions.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Rendering/PdfPageRenderOptions.cs#L35)

Maximum aggregate diagnostic characters retained while rendering one page.

`public bool ContinueOnError { get; set; }` [#](#property-continueonerror)

[PdfPageRenderOptions.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Rendering/PdfPageRenderOptions.cs#L37)

Continues a batch and returns a failed per-page report when rendering fails.

## Inherited Properties

`public OfficeImageExportFormat Format { get; set; }` [#](#property-format)

Inherited from OfficeImageExportOptions

`public OfficePageSelector? PageSelector { get; set; }` [#](#property-pageselector)

Inherited from OfficeImageExportOptions

`public OfficeImageExportFileConflictPolicy FileConflictPolicy { get; set; }` [#](#property-fileconflictpolicy)

Inherited from OfficeImageExportOptions

`public bool FailOnLoss { get; set; }` [#](#property-failonloss)

Inherited from OfficeImageExportOptions

`public OfficeChartRenderOptions ChartRendering { get; set; }` [#](#property-chartrendering)

Inherited from OfficeImageExportOptions

`public double Scale { get; set; }` [#](#property-scale)

Inherited from OfficeImageExportOptions

`public int? MaximumOutputWidth { get; set; }` [#](#property-maximumoutputwidth)

Inherited from OfficeImageExportOptions

`public int? MaximumOutputHeight { get; set; }` [#](#property-maximumoutputheight)

Inherited from OfficeImageExportOptions

`public OfficeColor BackgroundColor { get; set; }` [#](#property-backgroundcolor)

Inherited from OfficeImageExportOptions

`public OfficeRasterEncodingOptions RasterEncoding { get; set; }` [#](#property-rasterencoding)

Inherited from OfficeImageExportOptions

`public bool SvgTextAsPaths { get; set; }` [#](#property-svgtextaspaths)

Inherited from OfficeImageExportOptions

`public long MaximumRasterPixels { get; set; }` [#](#property-maximumrasterpixels)

Inherited from OfficeImageExportOptions

`public OfficeRasterOverflowBehavior RasterOverflowBehavior { get; set; }` [#](#property-rasteroverflowbehavior)

Inherited from OfficeImageExportOptions

`public IOfficeRasterImageCodec? ImageCodec { get; set; }` [#](#property-imagecodec)

Inherited from OfficeImageExportOptions

`public double? TargetDpi { get; set; }` [#](#property-targetdpi)

Inherited from OfficeImageExportOptions

`public OfficeFontFaceCollection Fonts { get; set; }` [#](#property-fonts)

Inherited from OfficeImageExportOptions

`public IOfficeTextShapingProvider? TextShapingProvider { get; set; }` [#](#property-textshapingprovider)

Inherited from OfficeImageExportOptions

`public string? TextShapingLanguage { get; set; }` [#](#property-textshapinglanguage)

Inherited from OfficeImageExportOptions

`public OfficeImageExportPolicy Policy { get; set; }` [#](#property-policy)

Inherited from OfficeImageExportOptions

`public IProgress<OfficeImageExportProgress>? Progress { get; set; }` [#](#property-progress)

Inherited from OfficeImageExportOptions

`public int MaximumOutputCount { get; set; }` [#](#property-maximumoutputcount)

Inherited from OfficeImageExportOptions

`public long MaximumTotalRasterPixels { get; set; }` [#](#property-maximumtotalrasterpixels)

Inherited from OfficeImageExportOptions

`public long MaximumTotalEncodedBytes { get; set; }` [#](#property-maximumtotalencodedbytes)

Inherited from OfficeImageExportOptions

`public TimeSpan RenderTimeout { get; set; }` [#](#property-rendertimeout)

Inherited from OfficeImageExportOptions

`public int MaximumDegreeOfParallelism { get; set; }` [#](#property-maximumdegreeofparallelism)

Inherited from OfficeImageExportOptions

`public virtual double LogicalUnitsPerInch { get; }` [#](#property-logicalunitsperinch)

Inherited from OfficeImageExportOptions

<!-- PowerForge markdown artifact sha256:63E050DEF598B81403A782842C44FF9C29D4ABD0D5AEB515F7C0123315F3FB39 -->
