HtmlFixedSaveOptions.ExportEmbeddedCss

HtmlFixedSaveOptions ExportEmbeddedCss property. Specifies whether the CSS Cascading Style Sheet should be embedded into Html document.

HtmlFixedSaveOptions.ExportEmbeddedCss property

Specifies whether the CSS (Cascading Style Sheet) should be embedded into Html document.

public bool ExportEmbeddedCss { get; set; }

Examples

Shows how to export all resources embedded into the output HtmlFixed file.

HtmlFixedSaveOptions htmlFixedSaveOptions = new HtmlFixedSaveOptions();
htmlFixedSaveOptions.ExportEmbeddedCss = true;
htmlFixedSaveOptions.ExportEmbeddedFonts = true;
htmlFixedSaveOptions.ExportEmbeddedImages = true;
htmlFixedSaveOptions.ExportEmbeddedSvg = true;

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

See Also