Table of Contents
Options Property

Gets or sets a HtmlToPdfOptions object used for the current conversion.

Syntax
 public static HtmlToPdfOptions Options { get; set; }
Remarks

In an async action method you cannot use static HtmlToPdf.Options property to set the HTML to PDF conversion options because this property maintains a different value per thread and different part of the same async method may run in different thread. Use MVCToPDF.Options instead for such cases. MVCToPDF.Options always returns the same HtmlToPdfOptions object for the same async context.

See Also