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

ValueDescription
AUTOInstructs Aspose.Words to recognize the format automatically.
MS_WORKSMicrosoft Works 8 Document.
DOCMicrosoft Word 95 or Word 97 - 2003 Document.
DOTMicrosoft Word 95 or Word 97 - 2003 Template.
DOC_PRE_WORD_60The document is in pre-Word 95 format.
DOCXOffice Open XML WordprocessingML Document (macro-free).
DOCMOffice Open XML WordprocessingML Macro-Enabled Document.
DOTXOffice Open XML WordprocessingML Template (macro-free).
DOTMOffice Open XML WordprocessingML Macro-Enabled Template.
FLAT_OPCOffice Open XML WordprocessingML stored in a flat XML file instead of a ZIP package.
FLAT_OPC_MACRO_ENABLEDOffice Open XML WordprocessingML Macro-Enabled Document stored in a flat XML file instead of a ZIP package.
FLAT_OPC_TEMPLATEOffice Open XML WordprocessingML Template (macro-free) stored in a flat XML file instead of a ZIP package.
FLAT_OPC_TEMPLATE_MACRO_ENABLEDOffice Open XML WordprocessingML Macro-Enabled Template stored in a flat XML file instead of a ZIP package.
RTFNot supported in the FOSS edition — rejected at runtime. RTF format.
WORD_MLMicrosoft Word 2003 WordprocessingML format.
HTMLNot supported in the FOSS edition — rejected at runtime. HTML format.
MHTMLMHTML (Web archive) format.
MOBIMOBI format.
CHMCHM (Compiled HTML Help) format.
AZW_3AZW3 format.
EPUBEPUB format.
ODTNot supported in the FOSS edition — rejected at runtime. ODF Text Document.
OTTODF Text Document Template.
TEXTPlain Text.
MARKDOWNMarkdown text document.
PDFPdf document.
XMLXML document.
UNKNOWNUnrecognized format, cannot be loaded by Aspose.Words.

Properties

NameTypeAccessDescription
valuesint[]ReadReturns array of LoadFormat values.

Methods

SignatureDescription
getName(loadFormat: int) → StringReturns JAVA_STYLE string representation of integer LoadFormat value.
toString(loadFormat: int) → StringReturns DotNetStyle string representation of integer LoadFormat value.
fromName(loadFormatName: String) → intReturns integer representation by LoadFormat name.
getValues() → int[]Returns array of LoadFormat values.

See Also