HtmlFixedSaveOptions.PageMargins

HtmlFixedSaveOptions PageMargins property. Specifies the margins around pages in an HTML document. The margins value is measured in points and should be equal to or greater than 0. Default value is 10 points.

HtmlFixedSaveOptions.PageMargins property

Specifies the margins around pages in an HTML document. The margins value is measured in points and should be equal to or greater than 0. Default value is 10 points.

public double PageMargins { get; set; }

Remarks

Depends on the value of PageHorizontalAlignment property:

  • Defines top, bottom and left page margins if the value is Left.
  • Defines top, bottom and right page margins if the value is Right.
  • Defines top and bottom page margins if the value is Center.

Examples

Shows how to specify page margins in HtmlFixed format.

HtmlFixedSaveOptions htmlFixedSaveOptions = new HtmlFixedSaveOptions();
htmlFixedSaveOptions.PageMargins = 0;

Converter.Create()
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "HtmlFixedSaveOptions.PageMargins.html", htmlFixedSaveOptions)
    .Execute();

See Also