HtmlSaveOptions.ExportImagesAsBase64
HtmlSaveOptions ExportImagesAsBase64 property. Specifies whether images are saved in Base64 format to the output HTML MHTML or EPUB. Default is false.
HtmlSaveOptions.ExportImagesAsBase64 property
Specifies whether images are saved in Base64 format to the output HTML, MHTML or EPUB. Default is false
.
public bool ExportImagesAsBase64 { get; set; }
Remarks
When this property is set to true
images data are exported directly into the img elements and separate files are not created.
Examples
Shows how to export images as base64 to HTML.
HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions();
htmlSaveOptions.ExportImagesAsBase64 = true;
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "HtmlSaveOptions.ExportImagesAsBase64.html", htmlSaveOptions)
.Execute();
See Also
- class HtmlSaveOptions
- namespace Wordize.Saving
- assembly Wordize