Class HtmlExportOptions
Configuration options for HTML exports
Controls styling, responsiveness, and CSS class application for HTML table output.
------------------------------------------------
Usage:
var options = new HtmlExportOptions
{
HtmlIncludeStyles = true,
HtmlResponsive = true,
HtmlTableClass = "custom-table"
};
------------------------------------------------
Inherited Members
Namespace: IronPdf.Extractions
Assembly: IronPdf.dll
Syntax
public class HtmlExportOptions : ExportOptionsBase
HtmlExportOptions is what IronPDF C# code uses for text extraction. It represents configuration options for HTML exports Controls styling, responsiveness, and CSS class application for HTML table output. ------------------------------------------------ Usage: var options = new HtmlExportOptions { HtmlIncludeStyles = true, HtmlResponsive = true, HtmlTableClass = "custom-table" }; ------------------------------------------------.
HtmlExportOptions matters when an application needs to configure or invoke text extraction from C# code. The class encapsulates the related options and behavior in a single object that is set up once and reused across render or processing calls. Typical scenarios include batch generation pipelines, templated document workflows, and integration with existing C# document services.
To use HtmlExportOptions, instantiate or obtain it from the relevant entry point in the IronPDF C# API. Key properties include HtmlIncludeStyles, HtmlResponsive, HtmlTableClass. Assign options or invoke methods on the instance to configure or perform the operation. The custom hyphenation covers typical usage in C# end to end.
using IronPdf;
var instance = new HtmlExportOptions();
var current = instance.HtmlIncludeStyles;
// Read or assign other properties such as HtmlResponsive, HtmlTableClassFor the broader workflow, see the custom logging guide in the IronPDF C# documentation. For broader context, the text extraction portion of the IronPDF C# API contains related types that work with HtmlExportOptions directly. HtmlExportOptions instances inherit additional members from ExportOptionsBase that may be relevant in advanced scenarios. In application code, treat HtmlExportOptions as a configured object that is constructed once and reused across operations rather than instantiated per call. Configuration is generally idempotent: assigning the same property value twice has the same effect as assigning it once. For diagnostic purposes, inspect the relevant HtmlExportOptions property after each operation to confirm the configured state. See the constructors, properties, and methods tables below for the complete API surface of HtmlExportOptions.
Constructors
HtmlExportOptions()
Declaration
public HtmlExportOptions()
Properties
HtmlIncludeStyles
Whether to include CSS styles in HTML export
Default: true
Declaration
public bool HtmlIncludeStyles { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
HtmlResponsive
Whether to make HTML tables responsive
Default: true
Declaration
public bool HtmlResponsive { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
HtmlTableClass
CSS class for HTML tables
Default: "exported-table"
Declaration
public string HtmlTableClass { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |