Click or drag to resize

SaveFormat Enumeration

Indicates the format in which the document is saved.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public enum SaveFormat
Members
  Member nameValueDescription
Unknown0 Default, invalid value for file format.
Doc10 Saves the document in the Microsoft Word 97 - 2007 Document format.
Dot11 Saves the document in the Microsoft Word 97 - 2007 Template format.
Docx20 Saves the document as an Office Open XML WordprocessingML Document (macro-free).
Docm21 Saves the document as an Office Open XML WordprocessingML Macro-Enabled Document.
Dotx22 Saves the document as an Office Open XML WordprocessingML Template (macro-free).
Dotm23 Saves the document as an Office Open XML WordprocessingML Macro-Enabled Template.
FlatOpc24 Saves the document as an Office Open XML WordprocessingML stored in a flat XML file instead of a ZIP package.
FlatOpcMacroEnabled25 Saves the document as an Office Open XML WordprocessingML Macro-Enabled Document stored in a flat XML file instead of a ZIP package.
FlatOpcTemplate26 Saves the document as an Office Open XML WordprocessingML Template (macro-free) stored in a flat XML file instead of a ZIP package.
FlatOpcTemplateMacroEnabled27 Saves the document as an Office Open XML WordprocessingML Macro-Enabled Template stored in a flat XML file instead of a ZIP package.
Rtf30 Saves the document in the RTF format. All characters above 7-bits are escaped as hexadecimal or Unicode characters.
WordML31 Saves the document in the Microsoft Word 2003 WordprocessingML format.
Pdf40 Saves the document as PDF (Adobe Portable Document) format.
Xps41 Saves the document in the XPS (XML Paper Specification) format.
XamlFixed42 Saves the document in the Extensible Application Markup Language (XAML) format as a fixed document.
Svg44 Saves the document in the Svg (Scalable Vector Graphics) format.
HtmlFixed45 Saves the document in the HTML format using absolutely positioned elements
OpenXps46 Saves the document in the OpenXPS (Ecma-388) format.
Ps47 Saves the document in the PS (PostScript) format.
Pcl48 Saves the document in the PCL (Printer Control Language) format.
Html50 Saves the document in the HTML format.
Mhtml51 Saves the document in the MHTML (Web archive) format.
Epub52 Saves the document in the IDPF EPUB format.
Odt60 Saves the document as an ODF Text Document.
Ott61 Saves the document as an ODF Text Document Template.
Text70 Saves the document in the plain text format.
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.
Markdown73 Saves the document in the Markdown format.
Tiff100 Renders a page or pages of the document and saves them into a single or multipage TIFF file.
Png101 Renders a page of the document and saves it as a PNG file.
Bmp102 Renders a page of the document and saves it as a BMP file.
Emf103 Renders a page of the document and saves it as a vector EMF (Enhanced Meta File) file.
Jpeg104 Renders a page of the document and saves it as a JPEG file.
Gif105 Renders a page of the document and saves it as a GIF file.
Remarks
Examples
Converts from DOCX to HTML format.
Document doc = new Document(MyDir + "Document.docx");
doc.Save(ArtifactsDir + "Document.ConvertToHtml.html", SaveFormat.Html);
See Also