HtmlFixedSaveOptions.SaveFontFaceCssSeparately

HtmlFixedSaveOptions SaveFontFaceCssSeparately property. Flag indicates whether fontface CSS rules should be placed into a separate file fontFaces.css when a document is being saved with external stylesheet that is when ExportEmbeddedCss is false. Default value is false all CSS rules are written into single file styles.css.

HtmlFixedSaveOptions.SaveFontFaceCssSeparately property

Flag indicates whether “@font-face” CSS rules should be placed into a separate file “fontFaces.css” when a document is being saved with external stylesheet (that is, when ExportEmbeddedCss is false). Default value is false, all CSS rules are written into single file “styles.css”.

public bool SaveFontFaceCssSeparately { get; set; }

Examples

Shows how to save font faces css into a separate file in HtmlFixed format.

HtmlFixedSaveOptions htmlFixedSaveOptions = new HtmlFixedSaveOptions();
htmlFixedSaveOptions.SaveFontFaceCssSeparately = true;

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

See Also