---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/HtmlLoadOptions
---

# HtmlLoadOptions

## Overview

`HtmlLoadOptions` is a class in Aspose.PDF FOSS for .NET.
Inherits from: `LoadOptions`.

Options for loading HTML content into PDF.

This class provides 2 methods for working with HtmlLoadOptions objects in .NET programs.
Available methods include: `HtmlLoadOptions`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `ApsIntermediateFileIfAny`, `BasePath`, `CreateLogicalStructure`, `DisableFontLicenseVerifications`, `HtmlMediaType`, `InputEncoding`, and 11 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `BasePath` | `string?` | Read | Base path for resolving relative resource URLs. |
| `IsEmbedFonts` | `bool` | Read/Write | Whether to embed fonts used in the HTML. |
| `IsRenderToSinglePage` | `bool` | Read/Write | Render the entire HTML onto a single PDF page (canonical option). |
| `InputEncoding` | `string?` | Read/Write | Input encoding for the HTML content (e.g., "utf-8"). |
| `DisableFontLicenseVerifications` | `bool` | Read/Write | Whether to disable font license verification checks (shadows the LoadOptions base-class flag for legacy callers that read HtmlLoadOptions.DisableFontLicenseVerifications directly). |
| `HtmlMediaType` | `HtmlMediaType` | Read/Write | HTML media type for rendering (Screen or Print). |
| `CreateLogicalStructure` | `bool` | Read/Write | Whether to emit a logical-structure tree (tagged PDF) from the HTML structure. |
| `IsPriorityCssPageRule` | `bool` | Read/Write | Whether @page CSS rules take precedence over the page size declared in PageInfo. |
| `PageLayoutOption` | `HtmlPageLayoutOption` | Read/Write | How the generated PDF page layout reacts to wide HTML content. |
| `PageInfo` | `PageInfo` | Read/Write | Page descriptor (size, margins) applied to the generated PDF. |
| `ApsIntermediateFileIfAny` | `string?` | Read/Write | Path to an APS intermediate file (debug artifact). |
| `XpsIntermediateFileIfAny` | `string?` | Read/Write | Path to an XPS intermediate file (debug artifact). |
| `ShowFieldsBorders` | `bool` | Read/Write | Render form-field borders in the converted PDF. |
| `UseAreaClipping` | `bool` | Read/Write | Clip content to its declared area (overflow:hidden semantics). |
| `WarningHandler` | `IWarningCallback` | Read/Write | Warning handler invoked while loading the source document. |
| `WarningHandlerName` | `string` | Read/Write | Legacy string-typed warning-handler hook. |
| `LoadFormat` | `LoadFormat` | Read | The source format this options instance configures. |

## Methods

| Signature | Description |
|-----------|-------------|
| `HtmlLoadOptions()` | Calls HtmlLoadOptions on this HtmlLoadOptions instance. |
| `HtmlLoadOptions(basePath: string)` | Base path used to resolve relative URLs in the HTML (usually the directory of the HTML file being loaded). |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)