Aspose::Words::SaveFormat enum

SaveFormat enum

Indicates the format in which the document is saved.

enum class SaveFormat : int

Values

NameValueDescription
Azw353Saves the document in the AZW3 format.
Bmp102Renders a page of the document and saves it as a BMP file.
Doc10Saves the document in the Microsoft Word 97 - 2007 Document format.
Docling81Saves the document in Docling JSON format.
Docm21Saves the document as an Office Open XML WordprocessingML Macro-Enabled Document.
Docx20Saves the document as an Office Open XML WordprocessingML Document (macro-free).
Dot11Saves the document in the Microsoft Word 97 - 2007 Template format.
Dotm23Saves the document as an Office Open XML WordprocessingML Macro-Enabled Template.
Dotx22Saves the document as an Office Open XML WordprocessingML Template (macro-free).
Emf103Renders a page of the document and saves it as a vector EMF (Enhanced Meta File) file.
Eps106Renders a page of the document and saves it as an EPS file.
Epub52Saves the document in the EPUB format.
FlatOpc24Saves the document as an Office Open XML WordprocessingML stored in a flat XML file instead of a ZIP package.
FlatOpcMacroEnabled25Saves the document as an Office Open XML WordprocessingML Macro-Enabled Document stored in a flat XML file instead of a ZIP package.
FlatOpcTemplate26Saves the document as an Office Open XML WordprocessingML Template (macro-free) stored in a flat XML file instead of a ZIP package.
FlatOpcTemplateMacroEnabled27Saves the document as an Office Open XML WordprocessingML Macro-Enabled Template stored in a flat XML file instead of a ZIP package.
Gif105Renders a page of the document and saves it as a GIF file.
Html50Saves the document in the HTML format.
HtmlFixed45Saves the document in the HTML format using absolutely positioned elements
Jpeg104Renders a page of the document and saves it as a JPEG file.
Markdown73Saves the document in the Markdown format.
Mhtml51Saves the document in the MHTML (Web archive) format.
Mobi54Saves the document in the MOBI format.
Odt60Saves the document as an ODF Text Document.
OpenXps46Saves the document in the OpenXPS (Ecma-388) format.
Ott61Saves the document as an ODF Text Document Template.
Pcl48Saves the document in the PCL (Printer Control Language) format.
Pdf40Saves the document as PDF (Adobe Portable Document) format.
Png101Renders a page of the document and saves it as a PNG file.
Ps47Saves the document in the PS (PostScript) format.
Rtf30Saves the document in the RTF format. All characters above 7-bits are escaped as hexadecimal or Unicode characters.
Svg44Saves the document in the Svg (Scalable Vector Graphics) format.
Text70Saves the document in the plain text format.
Tiff100Renders a page or pages of the document and saves them into a single or multipage TIFF file.
Unknown0Default, invalid value for file format.
WordML31Saves the document in the Microsoft Word 2003 WordprocessingML format.
XamlFixed42Saves the document in the Extensible Application Markup Language (XAML) format as a fixed document.
XamlFlow71Beta. Saves the document in the Extensible Application Markup Language (XAML) format as a flow document.
XamlFlowPack72Beta. Saves the document in the Extensible Application Markup Language (XAML) package format as a flow document.
Xlsx80Saves the document as an Office Open XML SpreadsheetML Document (macro-free).
Xps41Saves the document in the XPS (XML Paper Specification) format.

Examples

Shows how to convert from DOCX to HTML format.

auto doc = System::MakeObject<Aspose::Words::Document>(System::String(get_MyDir() + u"Document.docx"));

doc->Save(get_ArtifactsDir() + u"Document.ConvertToHtml.html", SaveFormat::Html);

See Also