css_style_sheet_type property

HtmlSaveOptions.css_style_sheet_type property

Specifies how CSS (Cascading Style Sheet) styles are exported to HTML, MHTML or EPUB. Default value is CssStyleSheetType.INLINE for HTML/MHTML and CssStyleSheetType.EXTERNAL for EPUB.

@property
def css_style_sheet_type(self) -> aspose.words.saving.CssStyleSheetType:
    ...

@css_style_sheet_type.setter
def css_style_sheet_type(self, value: aspose.words.saving.CssStyleSheetType):
    ...

Remarks

Saving CSS style sheet into an external file is only supported when saving to HTML. When you are exporting to one of the container formats (EPUB or MHTML) and specifying CssStyleSheetType.EXTERNAL, CSS file will be encapsulated into the output package.

See Also