# OneNotePageRenderingOptions

Controls dependency-free OneNote page layout, rendering, and image export.

Class 

`OfficeIMO.OneNote`

**Namespace**

`OfficeIMO.OneNote`

**Assembly**

`OfficeIMO.OneNote`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OneNotePageRenderingOptions.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Rendering/OneNotePageRenderingOptions.cs#L17)

**Base**

`OfficeImageExportOptions`

Controls dependency-free OneNote page layout, rendering, and image export.

## Inheritance

- OfficeImageExportOptions
- OneNotePageRenderingOptions

## Derived Types

- [OneNotePageBatchRenderingOptions](/api/onenote/officeimo-onenote-onenotepagebatchrenderingoptions/)

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Convert OneNote to PDF, HTML, Markdown and Images](/docs/onenote/export-and-convert/) Guide
  
  Convert OneNote sections and notebooks to PDF, HTML or Markdown, render pages to PNG, TIFF or SVG images, and extract chunks for search, all offline.

## Usage

Explore 14 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.

### Returned or exposed by 2

- Method [OneNotePageBatchRenderingOptions.Clone](/api/onenote/officeimo-onenote-onenotepagebatchrenderingoptions/#method-clone)
- Method [OneNotePageRenderingOptions.Clone](/api/onenote/officeimo-onenote-onenotepagerenderingoptions/#method-clone)

### Accepted by parameters 12

- Method [OneNoteImageExportExtensions.SaveAsImage](/api/onenote/officeimo-onenote-onenoteimageexportextensions/#method-saveasimage-officeimo-onenote-onenotepage-string-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken) parameter `options`
- Method [OneNoteImageExportExtensions.SaveAsImageAsync](/api/onenote/officeimo-onenote-onenoteimageexportextensions/#method-saveasimageasync-officeimo-onenote-onenotepage-string-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken) parameter `options`
- Method [OneNoteImageExportExtensions.ToDrawing](/api/onenote/officeimo-onenote-onenoteimageexportextensions/#method-todrawing-officeimo-onenote-onenotepage-officeimo-onenote-onenotepagerenderingoptions) parameter `options`
- Method [OneNoteImageExportExtensions.ToImage](/api/onenote/officeimo-onenote-onenoteimageexportextensions/#method-toimage-officeimo-onenote-onenotepage-officeimo-drawing-officeimageexportformat-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken) parameter `options`
- Method [OneNoteImageExportExtensions.ToImageAsync](/api/onenote/officeimo-onenote-onenoteimageexportextensions/#method-toimageasync-officeimo-onenote-onenotepage-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken) parameter `options`
- Extension method [OneNotePage.SaveAsImage](/api/onenote/officeimo-onenote-onenotepage/#extension-saveasimage-officeimo-onenote-onenotepage-io-stream-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken) parameter `options`
- Extension method [OneNotePage.SaveAsImageAsync](/api/onenote/officeimo-onenote-onenotepage/#extension-saveasimageasync-officeimo-onenote-onenotepage-io-stream-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken) parameter `options`
- Extension method [OneNotePage.ToDrawing](/api/onenote/officeimo-onenote-onenotepage/#extension-todrawing-officeimo-onenote-onenotepage-officeimo-onenote-onenotepagerenderingoptions) parameter `options`
- Extension method [OneNotePage.ToImage](/api/onenote/officeimo-onenote-onenotepage/#extension-toimage-officeimo-onenote-onenotepage-officeimo-drawing-officeimageexportformat-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken) parameter `options`
- Extension method [OneNotePage.ToImageAsync](/api/onenote/officeimo-onenote-onenotepage/#extension-toimageasync-officeimo-onenote-onenotepage-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken) parameter `options`
- Method [OneNotePageRenderer.CreateSnapshot](/api/onenote/officeimo-onenote-onenotepagerenderer/#method-createsnapshot-officeimo-onenote-onenotepage-officeimo-onenote-onenotepagerenderingoptions) parameter `options`
- Method [OneNotePageRenderer.Render](/api/onenote/officeimo-onenote-onenotepagerenderer/#method-render-officeimo-onenote-onenotepage-officeimo-onenote-onenotepagerenderingoptions) parameter `options`

Filter members 

Show inherited

## Constructors

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

[OneNotePageRenderingOptions.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Rendering/OneNotePageRenderingOptions.cs#L17)

## Methods

`public OneNotePageRenderingOptions Clone()` [#](#method-clone)

[OneNotePageRenderingOptions.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Rendering/OneNotePageRenderingOptions.cs#L68)

Creates a detached copy.

Returns

`OneNotePageRenderingOptions`

## 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 override double LogicalUnitsPerInch { get; }` [#](#property-logicalunitsperinch)

[OneNotePageRenderingOptions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Rendering/OneNotePageRenderingOptions.cs#L14)

Logical document units represented by one inch. Point-based adapters override with 72.

`public bool IncludeTitle { get; set; }` [#](#property-includetitle)

[OneNotePageRenderingOptions.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Rendering/OneNotePageRenderingOptions.cs#L17)

Whether the page title is rendered.

`public bool IncludeImages { get; set; }` [#](#property-includeimages)

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

Whether embedded pictures, including printout backgrounds, are rendered.

`public bool IncludeInk { get; set; }` [#](#property-includeink)

[OneNotePageRenderingOptions.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Rendering/OneNotePageRenderingOptions.cs#L23)

Whether native ink strokes are rendered.

`public bool IncludeMath { get; set; }` [#](#property-includemath)

[OneNotePageRenderingOptions.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Rendering/OneNotePageRenderingOptions.cs#L26)

Whether structured mathematical expressions are typeset.

`public bool IncludeAttachmentPlaceholders { get; set; }` [#](#property-includeattachmentplaceholders)

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

Whether attachment and recording placeholders are rendered.

`public long MaxImageBytes { get; set; }` [#](#property-maximagebytes)

[OneNotePageRenderingOptions.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Rendering/OneNotePageRenderingOptions.cs#L32)

Maximum bytes materialized from any single lazy image payload.

`public double MaximumImageDimensionPoints { get; set; }` [#](#property-maximumimagedimensionpoints)

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

Maximum logical width or height inferred from an embedded image header, in points.

`public double AutomaticPageWidthPoints { get; set; }` [#](#property-automaticpagewidthpoints)

[OneNotePageRenderingOptions.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Rendering/OneNotePageRenderingOptions.cs#L38)

Minimum width used for automatically sized pages, in points.

`public double AutomaticPageHeightPoints { get; set; }` [#](#property-automaticpageheightpoints)

[OneNotePageRenderingOptions.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Rendering/OneNotePageRenderingOptions.cs#L41)

Minimum height used for automatically sized pages, in points.

`public double AutomaticPagePaddingPoints { get; set; }` [#](#property-automaticpagepaddingpoints)

[OneNotePageRenderingOptions.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Rendering/OneNotePageRenderingOptions.cs#L44)

Extra space retained beyond inferred content bounds, in points.

`public OfficeFontInfo DefaultFont { get; set; }` [#](#property-defaultfont)

[OneNotePageRenderingOptions.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Rendering/OneNotePageRenderingOptions.cs#L47)

Default body font used when a OneNote run does not name one.

`public OfficeInkRenderOptions Ink { get; set; }` [#](#property-ink)

[OneNotePageRenderingOptions.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Rendering/OneNotePageRenderingOptions.cs#L50)

Reusable ink-rendering settings.

`public OfficeMathRenderOptions Math { get; set; }` [#](#property-math)

[OneNotePageRenderingOptions.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Rendering/OneNotePageRenderingOptions.cs#L53)

Reusable mathematical-rendering settings.

## 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

## Fields

`public const double DefaultMaximumImageDimensionPoints` [#](#field-defaultmaximumimagedimensionpoints)

[OneNotePageRenderingOptions.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Rendering/OneNotePageRenderingOptions.cs#L11)

Default maximum logical width or height contributed by one embedded image.

Value: `14400`

<!-- PowerForge markdown artifact sha256:D6D3073C2AB5C74D1193CC8A99BAB867ED4066349B9F06BA834B8FA16D83FEA5 -->
