Class HtmlFormatOptions
This class contains properties that define the formatting options for converting PDF to HTML.
Inheritance
System.Object
HtmlFormatOptions
Namespace: IronPdf
Assembly: IronPdf.dll
Syntax
public class HtmlFormatOptions : Object
Constructors
HtmlFormatOptions()
Declaration
public HtmlFormatOptions()
Properties
BackgroundColor
The background color of the HTML body. Default is "lightgray".
Declaration
public Color BackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
IronSoftware.Drawing.Color |
H1Color
The color of the title (h1) in the HTML document. Default is "black".
Declaration
public Color H1Color { get; set; }
Property Value
Type | Description |
---|---|
IronSoftware.Drawing.Color |
H1FontSize
The font size of the title (h1) in the HTML document, specified in pixels. Default is 20.
Declaration
public int H1FontSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
H1TextAlignment
The text alignment of the title (h1) in the HTML document. Default is TextAlignment.Center.
Declaration
public TextAlignment H1TextAlignment { get; set; }
Property Value
Type | Description |
---|---|
TextAlignment |
PdfPageMargin
The margin around each PDF page in the HTML document, specified in pixels. Default is 10.
Declaration
public int PdfPageMargin { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |