# HtmlPdfExportOptionsFluent

The fluent methods of HtmlPdfExportOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Html.Pdf`

**Namespace**

`OfficeIMO.Html.Pdf`

**Assembly**

`OfficeIMO.Html.Pdf`

**Modifiers**

static

The fluent methods of [HtmlPdfExportOptions](/api/html-pdf/officeimo-html-pdf-htmlpdfexportoptions/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- HtmlPdfExportOptionsFluent

Filter members 

Show inherited

## Methods

`public static HtmlPdfExportOptions AdditionalStylesheet(HtmlPdfExportOptions htmlPdfExportOptions, string item)` [#](#method-additionalstylesheet-officeimo-html-pdf-htmlpdfexportoptions-string)

Adds an item to HtmlRenderOptions.AdditionalStylesheets.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**item string required**

The item.

Returns

`HtmlPdfExportOptions` The same instance.

`public static HtmlPdfExportOptions AdditionalStylesheets(HtmlPdfExportOptions htmlPdfExportOptions, IEnumerable<string> items)` [#](#method-additionalstylesheets-officeimo-html-pdf-htmlpdfexportoptions-collections-generic-ienumerable-system-string)

Adds items to HtmlRenderOptions.AdditionalStylesheets.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**items System.Collections.Generic.IEnumerable<string> required**

The items, in order.

Returns

`HtmlPdfExportOptions` The same instance.

`public static HtmlPdfExportOptions AllowSystemFontFallback(HtmlPdfExportOptions htmlPdfExportOptions, bool value = true)` [#](#method-allowsystemfontfallback-officeimo-html-pdf-htmlpdfexportoptions-boolean)

Sets HtmlRenderOptions.AllowSystemFontFallback.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                               // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { AllowSystemFontFallback = value };    htmlPdfExportOptions.AllowSystemFontFallback(value);
```

`public static HtmlPdfExportOptions AutoFitWidePrintContent(HtmlPdfExportOptions htmlPdfExportOptions, bool value = true)` [#](#method-autofitwideprintcontent-officeimo-html-pdf-htmlpdfexportoptions-boolean)

Sets [HtmlPdfExportOptions.AutoFitWidePrintContent](/api/html-pdf/officeimo-html-pdf-htmlpdfexportoptions/): Fits visible layout overflow, including fixed-width descendants and tables, into a uniform CSS print page. Clipped descendants and paint-only shadows do not widen the layout. Fitting retains the physical CSS media context and uses bounded reflow. Named and page-specific rules require an explicit fitting width. Set to false to retain unscaled print layout. An explicit [HtmlPdfExportOptions.PrintLayoutWidthCssPixels](/api/html-pdf/officeimo-html-pdf-htmlpdfexportoptions/) takes precedence.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                               // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { AutoFitWidePrintContent = value };    htmlPdfExportOptions.AutoFitWidePrintContent(value);
```

`public static HtmlPdfExportOptions BackgroundColor(HtmlPdfExportOptions htmlPdfExportOptions, OfficeColor value)` [#](#method-backgroundcolor-officeimo-html-pdf-htmlpdfexportoptions-officeimo-officecolor)

Sets OfficeImageExportOptions.BackgroundColor.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.OfficeColor required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { BackgroundColor = value };    htmlPdfExportOptions.BackgroundColor(value);
```

`public static HtmlPdfExportOptions BaseUri(HtmlPdfExportOptions htmlPdfExportOptions, Uri? value)` [#](#method-baseuri-officeimo-html-pdf-htmlpdfexportoptions-uri)

Sets HtmlRenderOptions.BaseUri.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value System.Uri? required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { BaseUri = value };    htmlPdfExportOptions.BaseUri(value);
```

ChartRendering 2 overloads

`public static HtmlPdfExportOptions ChartRendering(HtmlPdfExportOptions htmlPdfExportOptions, OfficeChartRenderOptions value)` [#](#method-chartrendering-officeimo-html-pdf-htmlpdfexportoptions-officeimo-officechartrenderoptions)

Sets OfficeImageExportOptions.ChartRendering.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.OfficeChartRenderOptions required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { ChartRendering = value };    htmlPdfExportOptions.ChartRendering(value);
```

`public static HtmlPdfExportOptions ChartRendering(HtmlPdfExportOptions htmlPdfExportOptions, Action<OfficeChartRenderOptions> configure)` [#](#method-chartrendering-officeimo-html-pdf-htmlpdfexportoptions-action-officeimo-officechartrenderoptions)

Configures OfficeImageExportOptions.ChartRendering in place (creating it when not set).

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**configure System.Action<OfficeIMO.OfficeChartRenderOptions> required**

Configures the value.

Returns

`HtmlPdfExportOptions` The same instance.

`public static HtmlPdfExportOptions Configure(HtmlPdfExportOptions htmlPdfExportOptions, Action<HtmlPdfExportOptions> configure)` [#](#method-configure-officeimo-html-pdf-htmlpdfexportoptions-action-officeimo-html-pdf-htmlpdfexportoptions)

Assigns callbacks and related configuration without invoking delegate-valued properties.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**configure System.Action<OfficeIMO.Html.Pdf.HtmlPdfExportOptions> required**

Assignments applied in order.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                               // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { TextHyphenationCallback = value };    htmlPdfExportOptions.Configure(configured => configured.TextHyphenationCallback = value);
```

```csharp
// C# initializer or property                                                        // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { ResourceResolver = value };    htmlPdfExportOptions.Configure(configured => configured.ResourceResolver = value);
```

`public static HtmlPdfExportOptions ConicGradientQualitySegments(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-conicgradientqualitysegments-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.ConicGradientQualitySegments.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                    // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { ConicGradientQualitySegments = value };    htmlPdfExportOptions.ConicGradientQualitySegments(value);
```

`public static HtmlPdfExportOptions DefaultFontFamily(HtmlPdfExportOptions htmlPdfExportOptions, string value)` [#](#method-defaultfontfamily-officeimo-html-pdf-htmlpdfexportoptions-string)

Sets HtmlRenderOptions.DefaultFontFamily.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value string required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { DefaultFontFamily = value };    htmlPdfExportOptions.DefaultFontFamily(value);
```

`public static HtmlPdfExportOptions DefaultFontSize(HtmlPdfExportOptions htmlPdfExportOptions, double value)` [#](#method-defaultfontsize-officeimo-html-pdf-htmlpdfexportoptions-double)

Sets HtmlRenderOptions.DefaultFontSize.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value double required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { DefaultFontSize = value };    htmlPdfExportOptions.DefaultFontSize(value);
```

`public static HtmlPdfExportOptions DefaultLineHeight(HtmlPdfExportOptions htmlPdfExportOptions, double value)` [#](#method-defaultlineheight-officeimo-html-pdf-htmlpdfexportoptions-double)

Sets HtmlRenderOptions.DefaultLineHeight.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value double required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { DefaultLineHeight = value };    htmlPdfExportOptions.DefaultLineHeight(value);
```

`public static HtmlPdfExportOptions FailOnLoss(HtmlPdfExportOptions htmlPdfExportOptions, bool value = true)` [#](#method-failonloss-officeimo-html-pdf-htmlpdfexportoptions-boolean)

Sets OfficeImageExportOptions.FailOnLoss.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { FailOnLoss = value };    htmlPdfExportOptions.FailOnLoss(value);
```

`public static HtmlPdfExportOptions FidelityPolicy(HtmlPdfExportOptions htmlPdfExportOptions, HtmlRenderFidelityPolicy value)` [#](#method-fidelitypolicy-officeimo-html-pdf-htmlpdfexportoptions-officeimo-html-htmlrenderfidelitypolicy)

Sets HtmlRenderOptions.FidelityPolicy.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Html.HtmlRenderFidelityPolicy required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { FidelityPolicy = value };    htmlPdfExportOptions.FidelityPolicy(value);
```

`public static HtmlPdfExportOptions FileConflictPolicy(HtmlPdfExportOptions htmlPdfExportOptions, OfficeImageExportFileConflictPolicy value)` [#](#method-fileconflictpolicy-officeimo-html-pdf-htmlpdfexportoptions-officeimo-drawing-officeimageexportfileconflictpolicy)

Sets OfficeImageExportOptions.FileConflictPolicy.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Drawing.OfficeImageExportFileConflictPolicy required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                          // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { FileConflictPolicy = value };    htmlPdfExportOptions.FileConflictPolicy(value);
```

`public static HtmlPdfExportOptions FontFamily(HtmlPdfExportOptions htmlPdfExportOptions, PdfEmbeddedFontFamily? value)` [#](#method-fontfamily-officeimo-html-pdf-htmlpdfexportoptions-officeimo-pdf-pdfembeddedfontfamily)

Sets [HtmlPdfExportOptions.FontFamily](/api/html-pdf/officeimo-html-pdf-htmlpdfexportoptions/): Optional caller-supplied embedded font family used by generated PDF text.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Pdf.PdfEmbeddedFontFamily? required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { FontFamily = value };    htmlPdfExportOptions.FontFamily(value);
```

Fonts 2 overloads

`public static HtmlPdfExportOptions Fonts(HtmlPdfExportOptions htmlPdfExportOptions, OfficeFontFaceCollection value)` [#](#method-fonts-officeimo-html-pdf-htmlpdfexportoptions-officeimo-drawing-officefontfacecollection)

Sets OfficeImageExportOptions.Fonts.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Drawing.OfficeFontFaceCollection required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { Fonts = value };    htmlPdfExportOptions.Fonts(value);
```

`public static HtmlPdfExportOptions Fonts(HtmlPdfExportOptions htmlPdfExportOptions, Action<OfficeFontFaceCollection> configure)` [#](#method-fonts-officeimo-html-pdf-htmlpdfexportoptions-action-officeimo-drawing-officefontfacecollection)

Configures OfficeImageExportOptions.Fonts in place (creating it when not set).

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**configure System.Action<OfficeIMO.Drawing.OfficeFontFaceCollection> required**

Configures the value.

Returns

`HtmlPdfExportOptions` The same instance.

`public static HtmlPdfExportOptions Format(HtmlPdfExportOptions htmlPdfExportOptions, OfficeImageExportFormat value)` [#](#method-format-officeimo-html-pdf-htmlpdfexportoptions-officeimo-drawing-officeimageexportformat)

Sets OfficeImageExportOptions.Format.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Drawing.OfficeImageExportFormat required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { Format = value };    htmlPdfExportOptions.Format(value);
```

`public static HtmlPdfExportOptions HonorCssPageRules(HtmlPdfExportOptions htmlPdfExportOptions, bool value = true)` [#](#method-honorcsspagerules-officeimo-html-pdf-htmlpdfexportoptions-boolean)

Sets HtmlRenderOptions.HonorCssPageRules.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { HonorCssPageRules = value };    htmlPdfExportOptions.HonorCssPageRules(value);
```

`public static HtmlPdfExportOptions ImageCodec(HtmlPdfExportOptions htmlPdfExportOptions, IOfficeRasterImageCodec? value)` [#](#method-imagecodec-officeimo-html-pdf-htmlpdfexportoptions-officeimo-drawing-iofficerasterimagecodec)

Sets OfficeImageExportOptions.ImageCodec.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Drawing.IOfficeRasterImageCodec? required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { ImageCodec = value };    htmlPdfExportOptions.ImageCodec(value);
```

`public static HtmlPdfExportOptions InteractiveFormControls(HtmlPdfExportOptions htmlPdfExportOptions, bool value = true)` [#](#method-interactiveformcontrols-officeimo-html-pdf-htmlpdfexportoptions-boolean)

Sets [HtmlPdfExportOptions.InteractiveFormControls](/api/html-pdf/officeimo-html-pdf-htmlpdfexportoptions/): Converts supported standard HTML inputs, text areas, and selects into interactive AcroForm fields. Disable this to retain the shared renderer's static control paint in the PDF.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                               // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { InteractiveFormControls = value };    htmlPdfExportOptions.InteractiveFormControls(value);
```

`public static HtmlPdfExportOptions Margins(HtmlPdfExportOptions htmlPdfExportOptions, HtmlRenderMargins value)` [#](#method-margins-officeimo-html-pdf-htmlpdfexportoptions-officeimo-html-htmlrendermargins)

Sets HtmlRenderOptions.Margins.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Html.HtmlRenderMargins required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { Margins = value };    htmlPdfExportOptions.Margins(value);
```

`public static HtmlPdfExportOptions MathMlSourceModificationDate(HtmlPdfExportOptions htmlPdfExportOptions, DateTimeOffset? value)` [#](#method-mathmlsourcemodificationdate-officeimo-html-pdf-htmlpdfexportoptions-nullable-system-datetimeoffset)

Sets [HtmlPdfExportOptions.MathMlSourceModificationDate](/api/html-pdf/officeimo-html-pdf-htmlpdfexportoptions/): Optional caller-supplied modification date for generated Formula MathML associated files.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value System.DateTimeOffset? required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                    // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MathMlSourceModificationDate = value };    htmlPdfExportOptions.MathMlSourceModificationDate(value);
```

`public static HtmlPdfExportOptions MaxBackgroundImageLayers(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxbackgroundimagelayers-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxBackgroundImageLayers.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxBackgroundImageLayers = value };    htmlPdfExportOptions.MaxBackgroundImageLayers(value);
```

`public static HtmlPdfExportOptions MaxBackgroundImageTiles(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxbackgroundimagetiles-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxBackgroundImageTiles.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                               // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxBackgroundImageTiles = value };    htmlPdfExportOptions.MaxBackgroundImageTiles(value);
```

`public static HtmlPdfExportOptions MaxBoxShadowLayers(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxboxshadowlayers-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxBoxShadowLayers.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                          // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxBoxShadowLayers = value };    htmlPdfExportOptions.MaxBoxShadowLayers(value);
```

`public static HtmlPdfExportOptions MaxCollapsedTableBorderSegments(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxcollapsedtablebordersegments-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxCollapsedTableBorderSegments.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                       // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxCollapsedTableBorderSegments = value };    htmlPdfExportOptions.MaxCollapsedTableBorderSegments(value);
```

`public static HtmlPdfExportOptions MaxColumnCount(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxcolumncount-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxColumnCount.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxColumnCount = value };    htmlPdfExportOptions.MaxColumnCount(value);
```

`public static HtmlPdfExportOptions MaxConcurrentResourceLoads(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxconcurrentresourceloads-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxConcurrentResourceLoads.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                  // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxConcurrentResourceLoads = value };    htmlPdfExportOptions.MaxConcurrentResourceLoads(value);
```

`public static HtmlPdfExportOptions MaxFrameDepth(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxframedepth-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxFrameDepth.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxFrameDepth = value };    htmlPdfExportOptions.MaxFrameDepth(value);
```

`public static HtmlPdfExportOptions MaxGradientStops(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxgradientstops-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxGradientStops.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                        // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxGradientStops = value };    htmlPdfExportOptions.MaxGradientStops(value);
```

`public static HtmlPdfExportOptions MaxGridTracks(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxgridtracks-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxGridTracks.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxGridTracks = value };    htmlPdfExportOptions.MaxGridTracks(value);
```

`public static HtmlPdfExportOptions MaxHtmlNodes(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxhtmlnodes-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxHtmlNodes.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxHtmlNodes = value };    htmlPdfExportOptions.MaxHtmlNodes(value);
```

`public static HtmlPdfExportOptions MaximumDegreeOfParallelism(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maximumdegreeofparallelism-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets OfficeImageExportOptions.MaximumDegreeOfParallelism.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                  // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaximumDegreeOfParallelism = value };    htmlPdfExportOptions.MaximumDegreeOfParallelism(value);
```

`public static HtmlPdfExportOptions MaximumOutputCount(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maximumoutputcount-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets OfficeImageExportOptions.MaximumOutputCount.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                          // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaximumOutputCount = value };    htmlPdfExportOptions.MaximumOutputCount(value);
```

`public static HtmlPdfExportOptions MaximumOutputHeight(HtmlPdfExportOptions htmlPdfExportOptions, int? value)` [#](#method-maximumoutputheight-officeimo-html-pdf-htmlpdfexportoptions-nullable-system-int32)

Sets OfficeImageExportOptions.MaximumOutputHeight.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int? required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                           // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaximumOutputHeight = value };    htmlPdfExportOptions.MaximumOutputHeight(value);
```

`public static HtmlPdfExportOptions MaximumOutputWidth(HtmlPdfExportOptions htmlPdfExportOptions, int? value)` [#](#method-maximumoutputwidth-officeimo-html-pdf-htmlpdfexportoptions-nullable-system-int32)

Sets OfficeImageExportOptions.MaximumOutputWidth.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int? required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                          // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaximumOutputWidth = value };    htmlPdfExportOptions.MaximumOutputWidth(value);
```

`public static HtmlPdfExportOptions MaximumRasterPixels(HtmlPdfExportOptions htmlPdfExportOptions, long value)` [#](#method-maximumrasterpixels-officeimo-html-pdf-htmlpdfexportoptions-int64)

Sets OfficeImageExportOptions.MaximumRasterPixels.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value long required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                           // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaximumRasterPixels = value };    htmlPdfExportOptions.MaximumRasterPixels(value);
```

`public static HtmlPdfExportOptions MaximumTotalEncodedBytes(HtmlPdfExportOptions htmlPdfExportOptions, long value)` [#](#method-maximumtotalencodedbytes-officeimo-html-pdf-htmlpdfexportoptions-int64)

Sets OfficeImageExportOptions.MaximumTotalEncodedBytes.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value long required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaximumTotalEncodedBytes = value };    htmlPdfExportOptions.MaximumTotalEncodedBytes(value);
```

`public static HtmlPdfExportOptions MaximumTotalRasterPixels(HtmlPdfExportOptions htmlPdfExportOptions, long value)` [#](#method-maximumtotalrasterpixels-officeimo-html-pdf-htmlpdfexportoptions-int64)

Sets OfficeImageExportOptions.MaximumTotalRasterPixels.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value long required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaximumTotalRasterPixels = value };    htmlPdfExportOptions.MaximumTotalRasterPixels(value);
```

`public static HtmlPdfExportOptions MaxInputCharacters(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxinputcharacters-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxInputCharacters.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                          // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxInputCharacters = value };    htmlPdfExportOptions.MaxInputCharacters(value);
```

`public static HtmlPdfExportOptions MaxLayoutDepth(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxlayoutdepth-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxLayoutDepth.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxLayoutDepth = value };    htmlPdfExportOptions.MaxLayoutDepth(value);
```

`public static HtmlPdfExportOptions MaxLayoutOperations(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxlayoutoperations-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxLayoutOperations.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                           // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxLayoutOperations = value };    htmlPdfExportOptions.MaxLayoutOperations(value);
```

`public static HtmlPdfExportOptions MaxLeaderCharacters(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxleadercharacters-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxLeaderCharacters.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                           // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxLeaderCharacters = value };    htmlPdfExportOptions.MaxLeaderCharacters(value);
```

`public static HtmlPdfExportOptions MaxOutlinedTextCharactersPerRun(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxoutlinedtextcharactersperrun-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets [HtmlPdfExportOptions.MaxOutlinedTextCharactersPerRun](/api/html-pdf/officeimo-html-pdf-htmlpdfexportoptions/): Maximum UTF-16 characters expanded into vector font outlines for one rendered text run. Raise this only for trusted documents with unusually long unbroken text.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                       // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxOutlinedTextCharactersPerRun = value };    htmlPdfExportOptions.MaxOutlinedTextCharactersPerRun(value);
```

`public static HtmlPdfExportOptions MaxOutlinedTextPathCommands(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxoutlinedtextpathcommands-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets [HtmlPdfExportOptions.MaxOutlinedTextPathCommands](/api/html-pdf/officeimo-html-pdf-htmlpdfexportoptions/): Maximum path commands generated by text outlines across one PDF conversion.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                   // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxOutlinedTextPathCommands = value };    htmlPdfExportOptions.MaxOutlinedTextPathCommands(value);
```

`public static HtmlPdfExportOptions MaxPageCount(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxpagecount-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxPageCount.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxPageCount = value };    htmlPdfExportOptions.MaxPageCount(value);
```

`public static HtmlPdfExportOptions MaxProjectedVisuals(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxprojectedvisuals-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxProjectedVisuals.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                           // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxProjectedVisuals = value };    htmlPdfExportOptions.MaxProjectedVisuals(value);
```

`public static HtmlPdfExportOptions MaxResourceBytes(HtmlPdfExportOptions htmlPdfExportOptions, long value)` [#](#method-maxresourcebytes-officeimo-html-pdf-htmlpdfexportoptions-int64)

Sets HtmlRenderOptions.MaxResourceBytes.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value long required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                        // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxResourceBytes = value };    htmlPdfExportOptions.MaxResourceBytes(value);
```

`public static HtmlPdfExportOptions MaxResourceCount(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxresourcecount-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxResourceCount.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                        // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxResourceCount = value };    htmlPdfExportOptions.MaxResourceCount(value);
```

`public static HtmlPdfExportOptions MaxResourceRequests(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxresourcerequests-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxResourceRequests.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                           // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxResourceRequests = value };    htmlPdfExportOptions.MaxResourceRequests(value);
```

`public static HtmlPdfExportOptions MaxRunningStringCharacters(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxrunningstringcharacters-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxRunningStringCharacters.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                  // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxRunningStringCharacters = value };    htmlPdfExportOptions.MaxRunningStringCharacters(value);
```

`public static HtmlPdfExportOptions MaxStylesheetImportDepth(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxstylesheetimportdepth-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxStylesheetImportDepth.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxStylesheetImportDepth = value };    htmlPdfExportOptions.MaxStylesheetImportDepth(value);
```

`public static HtmlPdfExportOptions MaxSurfaceHeight(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxsurfaceheight-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxSurfaceHeight.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                        // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxSurfaceHeight = value };    htmlPdfExportOptions.MaxSurfaceHeight(value);
```

`public static HtmlPdfExportOptions MaxSurfaceWidth(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxsurfacewidth-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxSurfaceWidth.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxSurfaceWidth = value };    htmlPdfExportOptions.MaxSurfaceWidth(value);
```

`public static HtmlPdfExportOptions MaxSvgForeignObjectDepth(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxsvgforeignobjectdepth-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxSvgForeignObjectDepth.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxSvgForeignObjectDepth = value };    htmlPdfExportOptions.MaxSvgForeignObjectDepth(value);
```

`public static HtmlPdfExportOptions MaxSvgForeignObjectHtmlNodes(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxsvgforeignobjecthtmlnodes-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxSvgForeignObjectHtmlNodes.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                    // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxSvgForeignObjectHtmlNodes = value };    htmlPdfExportOptions.MaxSvgForeignObjectHtmlNodes(value);
```

`public static HtmlPdfExportOptions MaxTableColumns(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxtablecolumns-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxTableColumns.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxTableColumns = value };    htmlPdfExportOptions.MaxTableColumns(value);
```

`public static HtmlPdfExportOptions MaxTableRows(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxtablerows-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxTableRows.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxTableRows = value };    htmlPdfExportOptions.MaxTableRows(value);
```

`public static HtmlPdfExportOptions MaxTextShadowLayers(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-maxtextshadowlayers-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.MaxTextShadowLayers.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                           // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxTextShadowLayers = value };    htmlPdfExportOptions.MaxTextShadowLayers(value);
```

`public static HtmlPdfExportOptions MaxTotalResourceBytes(HtmlPdfExportOptions htmlPdfExportOptions, long value)` [#](#method-maxtotalresourcebytes-officeimo-html-pdf-htmlpdfexportoptions-int64)

Sets HtmlRenderOptions.MaxTotalResourceBytes.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value long required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                             // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MaxTotalResourceBytes = value };    htmlPdfExportOptions.MaxTotalResourceBytes(value);
```

MediaFeatures 2 overloads

`public static HtmlPdfExportOptions MediaFeatures(HtmlPdfExportOptions htmlPdfExportOptions, HtmlRenderMediaFeatures value)` [#](#method-mediafeatures-officeimo-html-pdf-htmlpdfexportoptions-officeimo-html-htmlrendermediafeatures)

Sets HtmlRenderOptions.MediaFeatures.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Html.HtmlRenderMediaFeatures required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { MediaFeatures = value };    htmlPdfExportOptions.MediaFeatures(value);
```

`public static HtmlPdfExportOptions MediaFeatures(HtmlPdfExportOptions htmlPdfExportOptions, Action<HtmlRenderMediaFeatures> configure)` [#](#method-mediafeatures-officeimo-html-pdf-htmlpdfexportoptions-action-officeimo-html-htmlrendermediafeatures)

Configures HtmlRenderOptions.MediaFeatures in place (creating it when not set).

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**configure System.Action<OfficeIMO.Html.HtmlRenderMediaFeatures> required**

Configures the value.

Returns

`HtmlPdfExportOptions` The same instance.

`public static HtmlPdfExportOptions Mode(HtmlPdfExportOptions htmlPdfExportOptions, HtmlRenderMode value)` [#](#method-mode-officeimo-html-pdf-htmlpdfexportoptions-officeimo-html-htmlrendermode)

Sets HtmlRenderOptions.Mode.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Html.HtmlRenderMode required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { Mode = value };    htmlPdfExportOptions.Mode(value);
```

`public static HtmlPdfExportOptions PageIndex(HtmlPdfExportOptions htmlPdfExportOptions, int value)` [#](#method-pageindex-officeimo-html-pdf-htmlpdfexportoptions-int32)

Sets HtmlRenderOptions.PageIndex.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value int required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { PageIndex = value };    htmlPdfExportOptions.PageIndex(value);
```

`public static HtmlPdfExportOptions PageSelection(HtmlPdfExportOptions htmlPdfExportOptions, IReadOnlyList<int>? value)` [#](#method-pageselection-officeimo-html-pdf-htmlpdfexportoptions-collections-generic-ireadonlylist-system-int32)

Sets HtmlRenderOptions.PageSelection.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value System.Collections.Generic.IReadOnlyList<int>? required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { PageSelection = value };    htmlPdfExportOptions.PageSelection(value);
```

`public static HtmlPdfExportOptions PageSelector(HtmlPdfExportOptions htmlPdfExportOptions, OfficePageSelector? value)` [#](#method-pageselector-officeimo-html-pdf-htmlpdfexportoptions-officeimo-officepageselector)

Sets OfficeImageExportOptions.PageSelector.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.OfficePageSelector? required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { PageSelector = value };    htmlPdfExportOptions.PageSelector(value);
```

`public static HtmlPdfExportOptions PageSize(HtmlPdfExportOptions htmlPdfExportOptions, OfficePageSize value)` [#](#method-pagesize-officeimo-html-pdf-htmlpdfexportoptions-officeimo-drawing-officepagesize)

Sets HtmlRenderOptions.PageSize.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Drawing.OfficePageSize required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { PageSize = value };    htmlPdfExportOptions.PageSize(value);
```

PdfOptions 2 overloads

`public static HtmlPdfExportOptions PdfOptions(HtmlPdfExportOptions htmlPdfExportOptions, PdfCreateOptions value)` [#](#method-pdfoptions-officeimo-html-pdf-htmlpdfexportoptions-officeimo-pdf-pdfcreateoptions)

Sets [HtmlPdfExportOptions.PdfOptions](/api/html-pdf/officeimo-html-pdf-htmlpdfexportoptions/): PDF writer settings used for the generated document, including file version, forward-only serialization, tagging, compliance groundwork, and output intents.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Pdf.PdfCreateOptions required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { PdfOptions = value };    htmlPdfExportOptions.PdfOptions(value);
```

`public static HtmlPdfExportOptions PdfOptions(HtmlPdfExportOptions htmlPdfExportOptions, Action<PdfCreateOptions> configure)` [#](#method-pdfoptions-officeimo-html-pdf-htmlpdfexportoptions-action-officeimo-pdf-pdfcreateoptions)

Configures [HtmlPdfExportOptions.PdfOptions](/api/html-pdf/officeimo-html-pdf-htmlpdfexportoptions/) in place (creating it when not set): PDF writer settings used for the generated document, including file version, forward-only serialization, tagging, compliance groundwork, and output intents.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**configure System.Action<OfficeIMO.Pdf.PdfCreateOptions> required**

Configures the value.

Returns

`HtmlPdfExportOptions` The same instance.

Policy 2 overloads

`public static HtmlPdfExportOptions Policy(HtmlPdfExportOptions htmlPdfExportOptions, OfficeImageExportPolicy value)` [#](#method-policy-officeimo-html-pdf-htmlpdfexportoptions-officeimo-drawing-officeimageexportpolicy)

Sets OfficeImageExportOptions.Policy.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Drawing.OfficeImageExportPolicy required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { Policy = value };    htmlPdfExportOptions.Policy(value);
```

`public static HtmlPdfExportOptions Policy(HtmlPdfExportOptions htmlPdfExportOptions, Action<OfficeImageExportPolicy> configure)` [#](#method-policy-officeimo-html-pdf-htmlpdfexportoptions-action-officeimo-drawing-officeimageexportpolicy)

Configures OfficeImageExportOptions.Policy in place (creating it when not set).

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**configure System.Action<OfficeIMO.Drawing.OfficeImageExportPolicy> required**

Configures the value.

Returns

`HtmlPdfExportOptions` The same instance.

`public static HtmlPdfExportOptions PrintLayoutWidthCssPixels(HtmlPdfExportOptions htmlPdfExportOptions, double? value)` [#](#method-printlayoutwidthcsspixels-officeimo-html-pdf-htmlpdfexportoptions-nullable-system-double)

Sets [HtmlPdfExportOptions.PrintLayoutWidthCssPixels](/api/html-pdf/officeimo-html-pdf-htmlpdfexportoptions/): Optional wider CSS layout width for print-to-page fitting. The PDF keeps HtmlRenderOptions.PageSize as its physical size while the paged layout is uniformly reduced to fit its width. CSS media queries and responsive resource selection continue to use HtmlRenderOptions.ViewportWidth. When HtmlRenderOptions.HonorCssPageRules is true, the resolved authored page size and margins remain the physical PDF geometry while the content is reduced to fit its printable width. The requested width must exceed that printable width.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value double? required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                 // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { PrintLayoutWidthCssPixels = value };    htmlPdfExportOptions.PrintLayoutWidthCssPixels(value);
```

`public static HtmlPdfExportOptions Progress(HtmlPdfExportOptions htmlPdfExportOptions, IProgress<OfficeImageExportProgress>? value)` [#](#method-progress-officeimo-html-pdf-htmlpdfexportoptions-iprogress-officeimo-drawing-officeimageexportprogress)

Sets OfficeImageExportOptions.Progress.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value System.IProgress<OfficeIMO.Drawing.OfficeImageExportProgress>? required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { Progress = value };    htmlPdfExportOptions.Progress(value);
```

`public static HtmlPdfExportOptions ProjectSerializedShadowRoots(HtmlPdfExportOptions htmlPdfExportOptions, bool? value = true)` [#](#method-projectserializedshadowroots-officeimo-html-pdf-htmlpdfexportoptions-nullable-system-boolean)

Sets HtmlRenderOptions.ProjectSerializedShadowRoots.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                    // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { ProjectSerializedShadowRoots = value };    htmlPdfExportOptions.ProjectSerializedShadowRoots(value);
```

RasterEncoding 2 overloads

`public static HtmlPdfExportOptions RasterEncoding(HtmlPdfExportOptions htmlPdfExportOptions, OfficeRasterEncodingOptions value)` [#](#method-rasterencoding-officeimo-html-pdf-htmlpdfexportoptions-officeimo-drawing-officerasterencodingoptions)

Sets OfficeImageExportOptions.RasterEncoding.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Drawing.OfficeRasterEncodingOptions required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { RasterEncoding = value };    htmlPdfExportOptions.RasterEncoding(value);
```

`public static HtmlPdfExportOptions RasterEncoding(HtmlPdfExportOptions htmlPdfExportOptions, Action<OfficeRasterEncodingOptions> configure)` [#](#method-rasterencoding-officeimo-html-pdf-htmlpdfexportoptions-action-officeimo-drawing-officerasterencodingoptions)

Configures OfficeImageExportOptions.RasterEncoding in place (creating it when not set).

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**configure System.Action<OfficeIMO.Drawing.OfficeRasterEncodingOptions> required**

Configures the value.

Returns

`HtmlPdfExportOptions` The same instance.

`public static HtmlPdfExportOptions RasterOverflowBehavior(HtmlPdfExportOptions htmlPdfExportOptions, OfficeRasterOverflowBehavior value)` [#](#method-rasteroverflowbehavior-officeimo-html-pdf-htmlpdfexportoptions-officeimo-drawing-officerasteroverflowbehavior)

Sets OfficeImageExportOptions.RasterOverflowBehavior.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Drawing.OfficeRasterOverflowBehavior required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                              // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { RasterOverflowBehavior = value };    htmlPdfExportOptions.RasterOverflowBehavior(value);
```

`public static HtmlPdfExportOptions RenderTimeout(HtmlPdfExportOptions htmlPdfExportOptions, TimeSpan value)` [#](#method-rendertimeout-officeimo-html-pdf-htmlpdfexportoptions-timespan)

Sets OfficeImageExportOptions.RenderTimeout.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value System.TimeSpan required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { RenderTimeout = value };    htmlPdfExportOptions.RenderTimeout(value);
```

ResourcePolicy 2 overloads

`public static HtmlPdfExportOptions ResourcePolicy(HtmlPdfExportOptions htmlPdfExportOptions, PdfResourcePolicy value)` [#](#method-resourcepolicy-officeimo-html-pdf-htmlpdfexportoptions-officeimo-pdf-pdfresourcepolicy)

Sets [HtmlPdfExportOptions.ResourcePolicy](/api/html-pdf/officeimo-html-pdf-htmlpdfexportoptions/): Host-resource policy. Defaults to library-selected installed fonts and bounded in-source resources; document-selected host fonts, local files and remote reads are disabled.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Pdf.PdfResourcePolicy required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { ResourcePolicy = value };    htmlPdfExportOptions.ResourcePolicy(value);
```

`public static HtmlPdfExportOptions ResourcePolicy(HtmlPdfExportOptions htmlPdfExportOptions, Action<PdfResourcePolicy> configure)` [#](#method-resourcepolicy-officeimo-html-pdf-htmlpdfexportoptions-action-officeimo-pdf-pdfresourcepolicy)

Configures [HtmlPdfExportOptions.ResourcePolicy](/api/html-pdf/officeimo-html-pdf-htmlpdfexportoptions/) in place (creating it when not set): Host-resource policy. Defaults to library-selected installed fonts and bounded in-source resources; document-selected host fonts, local files and remote reads are disabled.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**configure System.Action<OfficeIMO.Pdf.PdfResourcePolicy> required**

Configures the value.

Returns

`HtmlPdfExportOptions` The same instance.

`public static HtmlPdfExportOptions ResourceTimeout(HtmlPdfExportOptions htmlPdfExportOptions, TimeSpan value)` [#](#method-resourcetimeout-officeimo-html-pdf-htmlpdfexportoptions-timespan)

Sets HtmlRenderOptions.ResourceTimeout.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value System.TimeSpan required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { ResourceTimeout = value };    htmlPdfExportOptions.ResourceTimeout(value);
```

ResourceUrlPolicy 2 overloads

`public static HtmlPdfExportOptions ResourceUrlPolicy(HtmlPdfExportOptions htmlPdfExportOptions, HtmlUrlPolicy? value)` [#](#method-resourceurlpolicy-officeimo-html-pdf-htmlpdfexportoptions-officeimo-html-htmlurlpolicy)

Sets HtmlRenderOptions.ResourceUrlPolicy.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Html.HtmlUrlPolicy? required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { ResourceUrlPolicy = value };    htmlPdfExportOptions.ResourceUrlPolicy(value);
```

`public static HtmlPdfExportOptions ResourceUrlPolicy(HtmlPdfExportOptions htmlPdfExportOptions, Action<HtmlUrlPolicy> configure)` [#](#method-resourceurlpolicy-officeimo-html-pdf-htmlpdfexportoptions-action-officeimo-html-htmlurlpolicy)

Configures HtmlRenderOptions.ResourceUrlPolicy in place (creating it when not set).

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**configure System.Action<OfficeIMO.Html.HtmlUrlPolicy> required**

Configures the value.

Returns

`HtmlPdfExportOptions` The same instance.

`public static HtmlPdfExportOptions Scale(HtmlPdfExportOptions htmlPdfExportOptions, double value)` [#](#method-scale-officeimo-html-pdf-htmlpdfexportoptions-double)

Sets OfficeImageExportOptions.Scale.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value double required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { Scale = value };    htmlPdfExportOptions.Scale(value);
```

`public static HtmlPdfExportOptions SvgTextAsPaths(HtmlPdfExportOptions htmlPdfExportOptions, bool value = true)` [#](#method-svgtextaspaths-officeimo-html-pdf-htmlpdfexportoptions-boolean)

Sets OfficeImageExportOptions.SvgTextAsPaths.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { SvgTextAsPaths = value };    htmlPdfExportOptions.SvgTextAsPaths(value);
```

`public static HtmlPdfExportOptions TargetDpi(HtmlPdfExportOptions htmlPdfExportOptions, double? value)` [#](#method-targetdpi-officeimo-html-pdf-htmlpdfexportoptions-nullable-system-double)

Sets OfficeImageExportOptions.TargetDpi.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value double? required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { TargetDpi = value };    htmlPdfExportOptions.TargetDpi(value);
```

`public static HtmlPdfExportOptions TextFallbacks(HtmlPdfExportOptions htmlPdfExportOptions, PdfTextFallbackFeatures value)` [#](#method-textfallbacks-officeimo-html-pdf-htmlpdfexportoptions-officeimo-pdf-pdftextfallbackfeatures)

Sets [HtmlPdfExportOptions.TextFallbacks](/api/html-pdf/officeimo-html-pdf-htmlpdfexportoptions/): OfficeIMO-managed font fallback groups used by generated PDF text.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Pdf.PdfTextFallbackFeatures required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { TextFallbacks = value };    htmlPdfExportOptions.TextFallbacks(value);
```

`public static HtmlPdfExportOptions TextShapingLanguage(HtmlPdfExportOptions htmlPdfExportOptions, string? value)` [#](#method-textshapinglanguage-officeimo-html-pdf-htmlpdfexportoptions-string)

Sets OfficeImageExportOptions.TextShapingLanguage.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value string? required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                           // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { TextShapingLanguage = value };    htmlPdfExportOptions.TextShapingLanguage(value);
```

`public static HtmlPdfExportOptions TextShapingMode(HtmlPdfExportOptions htmlPdfExportOptions, PdfTextShapingMode value)` [#](#method-textshapingmode-officeimo-html-pdf-htmlpdfexportoptions-officeimo-pdf-pdftextshapingmode)

Sets [HtmlPdfExportOptions.TextShapingMode](/api/html-pdf/officeimo-html-pdf-htmlpdfexportoptions/): Dependency-free shaping mode used by generated PDF text.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Pdf.PdfTextShapingMode required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { TextShapingMode = value };    htmlPdfExportOptions.TextShapingMode(value);
```

`public static HtmlPdfExportOptions TextShapingProvider(HtmlPdfExportOptions htmlPdfExportOptions, IOfficeTextShapingProvider? value)` [#](#method-textshapingprovider-officeimo-html-pdf-htmlpdfexportoptions-officeimo-drawing-iofficetextshapingprovider)

Sets [HtmlPdfExportOptions.TextShapingProvider](/api/html-pdf/officeimo-html-pdf-htmlpdfexportoptions/): Optional host-provided shaping seam used with caller-supplied or resolved embedded fonts.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Drawing.IOfficeTextShapingProvider? required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                           // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { TextShapingProvider = value };    htmlPdfExportOptions.TextShapingProvider(value);
```

UrlPolicy 2 overloads

`public static HtmlPdfExportOptions UrlPolicy(HtmlPdfExportOptions htmlPdfExportOptions, HtmlUrlPolicy value)` [#](#method-urlpolicy-officeimo-html-pdf-htmlpdfexportoptions-officeimo-html-htmlurlpolicy)

Sets HtmlRenderOptions.UrlPolicy.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Html.HtmlUrlPolicy required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { UrlPolicy = value };    htmlPdfExportOptions.UrlPolicy(value);
```

`public static HtmlPdfExportOptions UrlPolicy(HtmlPdfExportOptions htmlPdfExportOptions, Action<HtmlUrlPolicy> configure)` [#](#method-urlpolicy-officeimo-html-pdf-htmlpdfexportoptions-action-officeimo-html-htmlurlpolicy)

Configures HtmlRenderOptions.UrlPolicy in place (creating it when not set).

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**configure System.Action<OfficeIMO.Html.HtmlUrlPolicy> required**

Configures the value.

Returns

`HtmlPdfExportOptions` The same instance.

`public static HtmlPdfExportOptions UserAgentStyles(HtmlPdfExportOptions htmlPdfExportOptions, HtmlRenderUserAgentStyleMode value)` [#](#method-useragentstyles-officeimo-html-pdf-htmlpdfexportoptions-officeimo-html-htmlrenderuseragentstylemode)

Sets HtmlRenderOptions.UserAgentStyles.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value OfficeIMO.Html.HtmlRenderUserAgentStyleMode required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { UserAgentStyles = value };    htmlPdfExportOptions.UserAgentStyles(value);
```

`public static HtmlPdfExportOptions ViewportHeight(HtmlPdfExportOptions htmlPdfExportOptions, double? value)` [#](#method-viewportheight-officeimo-html-pdf-htmlpdfexportoptions-nullable-system-double)

Sets HtmlRenderOptions.ViewportHeight.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value double? required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { ViewportHeight = value };    htmlPdfExportOptions.ViewportHeight(value);
```

`public static HtmlPdfExportOptions ViewportWidth(HtmlPdfExportOptions htmlPdfExportOptions, double value)` [#](#method-viewportwidth-officeimo-html-pdf-htmlpdfexportoptions-double)

Sets HtmlRenderOptions.ViewportWidth.

Parameters

**htmlPdfExportOptions OfficeIMO.Html.Pdf.HtmlPdfExportOptions required**

The instance.

**value double required**

The value.

Returns

`HtmlPdfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Html.Pdf.HtmlPdfExportOptions { ViewportWidth = value };    htmlPdfExportOptions.ViewportWidth(value);
```

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`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?`

<!-- PowerForge markdown artifact sha256:430459853C2ACF8D020447C24FC9484C3F55D92E470E63DF8CEDE17412DBB87C -->
