com.aspose.words
Class SaveFormat

java.lang.Object
    extended by com.aspose.words.SaveFormat

public class SaveFormat 
extends java.lang.Object

Utility class containing constants. Indicates the format in which the document is saved.

Example:

Converts from DOC to HTML format.
Document doc = new Document(getMyDir() + "Document.doc");

doc.save(getMyDir() + "Document.ConvertToHtml Out.html", SaveFormat.HTML);
See Also:
Document.save(java.io.OutputStream, int), Document.SaveOptions

Field Summary
static final intNONE
           Default, invalid value for file format.
static final intDOC
           Saves the document in the Microsoft Word 97 - 2003 Document format.
static final intTEXT
           Saves the document in the plain text format.
static final intHTML
           Saves the document in the HTML format. Uses UTF8 encoding.
static final intDOCX
           Saves the document as a Microsoft Office 2007 Open XML Document (macro-free).
static final intDOCM
           Saves the document as a Microsoft Office 2007 Open XML Macro-Enabled Document.
static final intDOTX
           Saves the document as a Microsoft Office 2007 Open XML Template (macro-free).
static final intDOTM
           Saves the document as a Microsoft Office 2007 Open XML Macro-Enabled Template.
 

Field Detail

NONE

public static final int NONE
Default, invalid value for file format.

DOC

public static final int DOC
Saves the document in the Microsoft Word 97 - 2003 Document format.

TEXT

public static final int TEXT
Saves the document in the plain text format.

HTML

public static final int HTML
Saves the document in the HTML format. Uses UTF8 encoding.

DOCX

public static final int DOCX
Saves the document as a Microsoft Office 2007 Open XML Document (macro-free).

DOCM

public static final int DOCM
Saves the document as a Microsoft Office 2007 Open XML Macro-Enabled Document.

DOTX

public static final int DOTX
Saves the document as a Microsoft Office 2007 Open XML Template (macro-free).

DOTM

public static final int DOTM
Saves the document as a Microsoft Office 2007 Open XML Macro-Enabled Template.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.