Search Results for

    Show / Hide Table of Contents

    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 white.

    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
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronPDF to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronPDF free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.