HtmlSaveOptions

HtmlSaveOptions

Overview

HtmlSaveOptions is a class in Aspose.Words FOSS for .NET. Inherits from: SaveOptions.

Can be used to specify additional options when saving a document into the Html, Mhtml, Epub, Azw3 or Mobi format.

This class provides 3 methods for working with HtmlSaveOptions objects in .NET programs. Available methods include: CreateSaveOptions, HtmlSaveOptions. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: AllowEmbeddingPostScriptFonts, AllowNegativeIndent, CssClassNamePrefix, CssSavingCallback, CssStyleSheetFileName, CssStyleSheetType, and 60 more.

Properties

NameTypeAccessDescription
SaveFormatSaveFormatRead/WriteSpecifies the format in which the document will be saved if this save options object is used.
AllowNegativeIndentboolRead/WriteSpecifies whether negative left and right indents of paragraphs are normalized when saving to HTML, MHTML or EPUB.
CssStyleSheetFileNamestringRead/WriteSpecifies the path and the name of the Cascading Style Sheet (CSS) file written when a document is exported to HTML.
CssStyleSheetTypeCssStyleSheetTypeRead/WriteSpecifies how CSS (Cascading Style Sheet) styles are exported to HTML, MHTML or EPUB.
CssClassNamePrefixstringRead/WriteSpecifies a prefix which is added to all CSS class names.
DocumentPartSavingCallbackIDocumentPartSavingCallbackRead/WriteAllows to control how document parts are saved when a document is saved to HTML or EPUB.
CssSavingCallbackICssSavingCallbackRead/WriteAllows to control how CSS styles are saved when a document is saved to HTML, MHTML or EPUB.
DocumentSplitCriteriaDocumentSplitCriteriaRead/WriteSpecifies how the document should be split when saving to Html, Epub or Azw3 format.
DocumentSplitHeadingLevelintRead/WriteSpecifies the maximum level of headings at which to split the document.
EncodingEncodingRead/WriteSpecifies the encoding to use when exporting to HTML, MHTML or EPUB.
NavigationMapLevelintRead/WriteSpecifies the maximum level of headings populated to the navigation map when exporting to EPUB, MOBI, or AZW3 formats.
ExportDocumentPropertiesboolRead/WriteSpecifies whether to export built-in and custom document properties to HTML, MHTML or EPUB.
ExportFontResourcesboolRead/WriteSpecifies whether font resources should be exported to HTML, MHTML or EPUB.
ExportFontsAsBase64boolRead/WriteSpecifies whether fonts resources should be embedded to HTML in Base64 encoding.
ExportHeadersFootersModeExportHeadersFootersModeRead/WriteSpecifies how headers and footers are output to HTML, MHTML or EPUB.
ExportImagesAsBase64boolRead/WriteSpecifies whether images are saved in Base64 format to the output HTML, MHTML or EPUB.
ExportLanguageInformationboolRead/WriteSpecifies whether language information is exported to HTML, MHTML or EPUB.
ExportListLabelsExportListLabelsRead/WriteControls how list labels are output to HTML, MHTML or EPUB.
MetafileFormatHtmlMetafileFormatRead/WriteSpecifies in what format metafiles are saved when exporting to HTML, MHTML, or EPUB.
ExportPageSetupboolRead/WriteSpecifies whether page setup is exported to HTML, MHTML or EPUB.
ExportPageMarginsboolRead/WriteSpecifies whether page margins is exported to HTML, MHTML or EPUB.
ExportRelativeFontSizeboolRead/WriteSpecifies whether font sizes should be output in relative units when saving to HTML, MHTML or EPUB.
ExportTextInputFormFieldAsTextboolRead/WriteControls how text input form fields are saved to HTML or MHTML.
ExportShapesAsSvgboolRead/WriteControls whether Shape nodes are converted to SVG images when saving to HTML, MHTML, EPUB or AZW3.
ExportDropDownFormFieldAsTextboolRead/WriteControls how drop-down form fields are saved to HTML or MHTML.
ExportTocPageNumbersboolRead/WriteSpecifies whether to write page numbers to table of contents when saving HTML, MHTML and EPUB.
ExportXhtmlTransitionalboolRead/WriteSpecifies whether to write the DOCTYPE declaration when saving to HTML or MHTML.
HtmlVersionHtmlVersionRead/WriteSpecifies version of HTML standard that should be used when saving the document to HTML or MHTML.
ExportRoundtripInformationboolRead/WriteSpecifies whether to write the roundtrip information when saving to HTML, MHTML or EPUB.
ResourceFolderstringRead/WriteSpecifies a physical folder where all resources like images, fonts, and external CSS are saved when a document is exported to HTML.
ResourceFolderAliasstringRead/WriteSpecifies the name of the folder used to construct URIs of all resources written into an HTML document.
FontsFolderstringRead/WriteSpecifies the physical folder where fonts are saved when exporting a document to HTML.
FontsFolderAliasstringRead/WriteSpecifies the name of the folder used to construct font URIs written into an HTML document.
FontResourcesSubsettingSizeThresholdintRead/WriteControls which font resources need subsetting when saving to HTML, MHTML or EPUB.
ImagesFolderstringRead/WriteSpecifies the physical folder where images are saved when exporting a document to HTML format.
ImagesFolderAliasstringRead/WriteSpecifies the name of the folder used to construct image URIs written into an HTML document.
ImageResolutionintRead/WriteSpecifies the output resolution for images when exporting to HTML, MHTML or EPUB.
ImageSavingCallbackIImageSavingCallbackRead/WriteAllows to control how images are saved when a document is saved to HTML, MHTML or EPUB.
ScaleImageToShapeSizeboolRead/WriteSpecifies whether images are scaled by Aspose.Words to the bounding shape size when exporting to HTML, MHTML or EPUB.
TableWidthOutputModeHtmlElementSizeOutputModeRead/WriteControls how table, row and cell widths are exported to HTML, MHTML or EPUB.
OfficeMathOutputModeHtmlOfficeMathOutputModeRead/WriteControls how OfficeMath objects are exported to HTML, MHTML or EPUB.
ExportOriginalUrlForLinkedImagesboolRead/WriteSpecifies whether original URL should be used as the URL of the linked images.
ExportCidUrlsForMhtmlResourcesboolRead/WriteSpecifies whether to use CID (Content-ID) URLs to reference resources (images, fonts, CSS) included in MHTML documents.
ResolveFontNamesboolRead/WriteSpecifies whether font family names used in the document are resolved and substituted according to FontSettings when being written into HTML-based formats.
ReplaceBackslashWithYenSignboolRead/WriteSpecifies whether backslash characters should be replaced with yen signs.
RemoveJavaScriptFromLinksboolRead/WriteSpecifies whether JavaScript will be removed from links.
ExportGeneratorNameboolRead/WriteWhen true, causes the name and version of Aspose.Words to be embedded into produced files.
TempFolderstringRead/WriteSpecifies the folder for temporary files used when saving to a DOC or DOCX file.
UpdateOleControlImagesboolRead/WriteGets or sets a value determining whether OLE controls presentation image will be updated.
PrettyFormatboolRead/WriteWhen true, pretty formats output where applicable.
UseAntiAliasingboolRead/WriteGets or sets a value determining whether or not to use anti-aliasing for rendering.
UseHighQualityRenderingboolRead/WriteGets or sets a value determining whether or not to use high quality (i.e.
DmlRenderingModeDmlRenderingModeRead/WriteGets or sets a value determining how DrawingML shapes are rendered.
DmlEffectsRenderingModeDmlEffectsRenderingModeRead/WriteGets or sets a value determining how DrawingML effects are rendered.
ImlRenderingModeImlRenderingModeRead/WriteGets or sets a value determining how ink (InkML) objects are rendered.
DefaultTemplatestringRead/WriteGets or sets path to default template (including filename).
UpdateFieldsboolRead/WriteGets or sets a value determining if fields of certain types should be updated before saving the document to a fixed page format.
UpdateLastSavedTimePropertyboolRead/WriteGets or sets a value determining whether the LastSavedTime property is updated before saving.
UpdateLastPrintedPropertyboolRead/WriteGets or sets a value determining whether the LastPrinted property is updated before saving.
UpdateCreatedTimePropertyboolRead/WriteGets or sets a value determining whether the CreatedTime property is updated before saving.
MemoryOptimizationboolRead/WriteGets or sets value determining if memory optimization should be performed before saving the document.
UpdateAmbiguousTextFontboolRead/WriteDetermines whether the font attributes will be changed according to the character code being used.
Dml3DEffectsRenderingModeDml3DEffectsRenderingModeRead/WriteGets or sets a value determining how 3D effects are rendered.
ProgressCallbackIDocumentSavingCallbackRead/WriteCalled during saving a document and accepts data about saving progress.
AllowEmbeddingPostScriptFontsboolRead/WriteGets or sets a boolean value indicating whether to allow embedding fonts with PostScript outlines when embedding TrueType fonts in a document upon it is saved.
CustomTimeZoneInfoTimeZoneInfoRead/WriteGets or sets custom local time zone used for date/time fields.

Methods

SignatureDescription
HtmlSaveOptions()Initializes a new instance of this class that can be used to save a document in the Html format.
HtmlSaveOptions(saveFormat: SaveFormat)Initializes a new instance of this class that can be used to save a document in the Html, Mhtml, Epub, Azw3 or Mobi format.
CreateSaveOptions(saveFormat: SaveFormat)Creates a save options object of a correct class.

See Also