Table of Contents

Class HtmlConversionOptions

Namespace
BitMiracle.Docotic.Pdf.HtmlToPdf
Assembly
BitMiracle.Docotic.Pdf.HtmlToPdf.dll

Options for HTML to PDF conversions.

public class HtmlConversionOptions
Inheritance
HtmlConversionOptions
Inherited Members

Remarks

Use these options to configure different aspects of an HTML to PDF conversion. See the Convert HTML to PDF article for examples of how to use these options.

For an overview of the HTML‑to‑PDF features provided by Docotic.Pdf with the HtmlToPdf add‑on, see the HTML to PDF for .NET page.

Constructors

HtmlConversionOptions()

Initializes a new instance of the HtmlConversionOptions class.

Properties

Authentication

Gets the options for the optional HTTP authentication part of the conversion.

Cookies

Gets the collection of cookies to set before the loading part of the conversion.

CustomUserAgent

Gets or sets the custom user agent string.

FillMetadata

Gets or sets the value indicating whether the conversion should fill metadata fields in the produced PDF using the title and other information from the HTML.

Load

Gets the options for the loading part of the conversion.

MediaType

Gets or sets the CSS media type to use.

Page

Gets the options for page size, margins, etc.

PreserveStructureInformation

Gets or sets the value indicating whether the conversion should preserve the structure information (accessibility tags) in the produced PDF.

Start

Gets the options for the conversion start.

Timeout

Gets or sets the maximum time, in milliseconds, for operations like page loading or script execution.