LoadFormat
Overview
LoadFormat is an enum in Aspose.Words FOSS for Java.
Indicates the format of the document that is to be loaded.
Edition status of its 33 listed members (a property and its accessor methods are listed separately, overloads once): 3 not supported in the FOSS edition, 20 not yet exercised by a verified example.
This enum declares 4 methods for LoadFormat objects in Java programs.
Available methods include: fromName, getName, getValues, toString.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: values.
Values
| Value | Description |
|---|---|
AUTO | Instructs Aspose.Words to recognize the format automatically. |
MS_WORKS | Microsoft Works 8 Document. |
DOC | Microsoft Word 95 or Word 97 - 2003 Document. |
DOT | Microsoft Word 95 or Word 97 - 2003 Template. |
DOC_PRE_WORD_60 | The document is in pre-Word 95 format. |
DOCX | Office Open XML WordprocessingML Document (macro-free). |
DOCM | Office Open XML WordprocessingML Macro-Enabled Document. |
DOTX | Office Open XML WordprocessingML Template (macro-free). |
DOTM | Office Open XML WordprocessingML Macro-Enabled Template. |
FLAT_OPC | Office Open XML WordprocessingML stored in a flat XML file instead of a ZIP package. |
FLAT_OPC_MACRO_ENABLED | Office Open XML WordprocessingML Macro-Enabled Document stored in a flat XML file instead of a ZIP package. |
FLAT_OPC_TEMPLATE | Office Open XML WordprocessingML Template (macro-free) stored in a flat XML file instead of a ZIP package. |
FLAT_OPC_TEMPLATE_MACRO_ENABLED | Office Open XML WordprocessingML Macro-Enabled Template stored in a flat XML file instead of a ZIP package. |
RTF | Not supported in the FOSS edition — rejected at runtime. RTF format. |
WORD_ML | Microsoft Word 2003 WordprocessingML format. |
HTML | Not supported in the FOSS edition — rejected at runtime. HTML format. |
MHTML | MHTML (Web archive) format. |
MOBI | MOBI format. |
CHM | CHM (Compiled HTML Help) format. |
AZW_3 | AZW3 format. |
EPUB | EPUB format. |
ODT | Not supported in the FOSS edition — rejected at runtime. ODF Text Document. |
OTT | ODF Text Document Template. |
TEXT | Plain Text. |
MARKDOWN | Markdown text document. |
PDF | Pdf document. |
XML | XML document. |
UNKNOWN | Unrecognized format, cannot be loaded by Aspose.Words. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
values | int[] | Read | Returns array of LoadFormat values. |
Methods
| Signature | Description |
|---|---|
getName(loadFormat: int) → String | Returns JAVA_STYLE string representation of integer LoadFormat value. |
toString(loadFormat: int) → String | Returns DotNetStyle string representation of integer LoadFormat value. |
fromName(loadFormatName: String) → int | Returns integer representation by LoadFormat name. |
getValues() → int[] | Returns array of LoadFormat values. |