HtmlSaveOptions.ExportFonts
Contents
[
Hide
]HtmlSaveOptions.ExportFonts property
Gets or sets the way fonts are exported.
public ResourceExportType ExportFonts { get; set; }
Examples
Shows how to save a document in html format with storing all resources(css/fonts/images) to a separate files.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
var document = new Document(Path.Combine(dataDir, "Aspose.one"));
var options = new HtmlSaveOptions()
{
ExportCss = ResourceExportType.ExportAsStream,
ExportFonts = ResourceExportType.ExportAsStream,
ExportImages = ResourceExportType.ExportAsStream,
FontFaceTypes = FontFaceType.Ttf
};
document.Save(dataDir + "document_out.html", options);
Shows how to save a document to a stream in html format with embedding of all resources(css/fonts/images).
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
var document = new Document(Path.Combine(dataDir, "Aspose.one"));
var options = new HtmlSaveOptions()
{
ExportCss = ResourceExportType.ExportEmbedded,
ExportFonts = ResourceExportType.ExportEmbedded,
ExportImages = ResourceExportType.ExportEmbedded,
FontFaceTypes = FontFaceType.Ttf
};
var r = new MemoryStream();
document.Save(r, options);
See Also
- enum ResourceExportType
- class HtmlSaveOptions
- namespace Aspose.Note.Saving
- assembly Aspose.Note