java.lang.Object
com.aspose.words.LoadFormat
public class LoadFormat
- extends java.lang.Object
Utility class containing constants.
Indicates the format of the document that is to be loaded.
Example:
Explicitly loads a document as HTML without automatic file format detection.
Document doc = new Document(getMyDir() + "Document.LoadFormat.html", LoadFormat.HTML, null);
Field Summary |
static final int | AUTO | |
Instructs Aspose.Words to recognize the format automatically.
|
static final int | DOC | |
Microsoft Word 97 - 2007 Binary Document or Template.
|
static final int | DOCX | |
Office Open XML WordprocessingML document or template, with or without macros.
|
static final int | RTF | |
RTF format.
|
static final int | HTML | |
HTML format.
|
static final int | ODT | |
OpenDocument Text format (OpenOffice Writer).
|
static final int | DOC_PRE_WORD_97 | |
The document is in the Word 6 or Word 95 format.
Aspose.Words does not currently support loading such documents.
|
static final int | DOC_ENCRYPTED | |
The document is an encrypted Microsoft Word 97 - 2007 Binary Document
and requires a password to open.
|
static final int | OOXML_ENCRYPTED | |
The document is an encrypted Office Open XML document and requires a password to open.
It is not possible to ascertain whether it is a WordprocessingML, SpreadsheetML or
PresentationML document without decrypting it first.
|
static final int | UNKNOWN | |
Unrecognized format, cannot be loaded by Aspose.Words.
|
AUTO | |
public static final int AUTO |
-
Instructs Aspose.Words to recognize the format automatically.
DOC | |
public static final int DOC |
-
Microsoft Word 97 - 2007 Binary Document or Template.
DOCX | |
public static final int DOCX |
-
Office Open XML WordprocessingML document or template, with or without macros.
RTF | |
public static final int RTF |
-
RTF format.
HTML | |
public static final int HTML |
-
HTML format.
ODT | |
public static final int ODT |
-
OpenDocument Text format (OpenOffice Writer).
DOC_PRE_WORD_97 | |
public static final int DOC_PRE_WORD_97 |
-
The document is in the Word 6 or Word 95 format.
Aspose.Words does not currently support loading such documents.
DOC_ENCRYPTED | |
public static final int DOC_ENCRYPTED |
-
The document is an encrypted Microsoft Word 97 - 2007 Binary Document
and requires a password to open.
OOXML_ENCRYPTED | |
public static final int OOXML_ENCRYPTED |
-
The document is an encrypted Office Open XML document and requires a password to open.
It is not possible to ascertain whether it is a WordprocessingML, SpreadsheetML or
PresentationML document without decrypting it first.
UNKNOWN | |
public static final int UNKNOWN |
-
Unrecognized format, cannot be loaded by Aspose.Words.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.