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

NameTypeAccessDescription
BasePathstring?ReadBase path for resolving relative resource URLs.
IsEmbedFontsboolRead/WriteWhether to embed fonts used in the HTML.
IsRenderToSinglePageboolRead/WriteRender the entire HTML onto a single PDF page (canonical option).
InputEncodingstring?Read/WriteInput encoding for the HTML content (e.g., “utf-8”).
DisableFontLicenseVerificationsboolRead/WriteWhether to disable font license verification checks (shadows the LoadOptions base-class flag for legacy callers that read HtmlLoadOptions.DisableFontLicenseVerifications directly).
HtmlMediaTypeHtmlMediaTypeRead/WriteHTML media type for rendering (Screen or Print).
CreateLogicalStructureboolRead/WriteWhether to emit a logical-structure tree (tagged PDF) from the HTML structure.
IsPriorityCssPageRuleboolRead/WriteWhether @page CSS rules take precedence over the page size declared in PageInfo.
PageLayoutOptionHtmlPageLayoutOptionRead/WriteHow the generated PDF page layout reacts to wide HTML content.
PageInfoPageInfoRead/WritePage descriptor (size, margins) applied to the generated PDF.
ApsIntermediateFileIfAnystring?Read/WritePath to an APS intermediate file (debug artifact).
XpsIntermediateFileIfAnystring?Read/WritePath to an XPS intermediate file (debug artifact).
ShowFieldsBordersboolRead/WriteRender form-field borders in the converted PDF.
UseAreaClippingboolRead/WriteClip content to its declared area (overflow:hidden semantics).
WarningHandlerIWarningCallbackRead/WriteWarning handler invoked while loading the source document.
WarningHandlerNamestringRead/WriteLegacy string-typed warning-handler hook.
LoadFormatLoadFormatReadThe source format this options instance configures.

Methods

SignatureDescription
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