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 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 intRTF
           Saves the document in the RTF format. All characters above 7-bits are escaped as hexadecimal or Unicode characters.
static final intHTML
           Saves the document in the HTML format.
static final intTEXT
           Saves the document in the plain text format.
static final intODT
           Saves the document in the OpenDocument format.
 

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.

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.

RTF

public static final int RTF
Saves the document in the RTF format. All characters above 7-bits are escaped as hexadecimal or Unicode characters.

HTML

public static final int HTML
Saves the document in the HTML format.

TEXT

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

ODT

public static final int ODT
Saves the document in the OpenDocument format.

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