SaveFormat
Overview
SaveFormat is an enum in Aspose.Words FOSS for Java.
Indicates the format in which the document is saved.
Edition status of its 47 listed members (a property and its accessor methods are listed separately, overloads once): 12 not supported in the FOSS edition, 25 not yet exercised by a verified example.
This enum declares 4 methods for SaveFormat 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 |
|---|---|
UNKNOWN | Default, invalid value for file format. |
DOC | Not supported in the FOSS edition — rejected at runtime. Saves the document in the Microsoft Word 97 - 2007 Document format. |
DOT | Saves the document in the Microsoft Word 97 - 2007 Template format. |
DOCX | Saves the document as an Office Open XML WordprocessingML Document (macro-free). |
DOCM | Saves the document as an Office Open XML WordprocessingML Macro-Enabled Document. |
DOTX | Saves the document as an Office Open XML WordprocessingML Template (macro-free). |
DOTM | Saves the document as an Office Open XML WordprocessingML Macro-Enabled Template. |
FLAT_OPC | Saves the document as an Office Open XML WordprocessingML stored in a flat XML file instead of a ZIP package. |
FLAT_OPC_MACRO_ENABLED | Saves the document as an Office Open XML WordprocessingML Macro-Enabled Document stored in a flat XML file instead of a ZIP package. |
FLAT_OPC_TEMPLATE | Saves the document as an Office Open XML WordprocessingML Template (macro-free) stored in a flat XML file instead of a ZIP package. |
FLAT_OPC_TEMPLATE_MACRO_ENABLED | Saves the document as an 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. Saves the document in the RTF format. |
WORD_ML | Not supported in the FOSS edition — rejected at runtime. Saves the document in the Microsoft Word 2003 WordprocessingML format. |
PDF | Not supported in the FOSS edition — rejected at runtime. Saves the document as PDF (Adobe Portable Document) format. |
XPS | Not supported in the FOSS edition — rejected at runtime. Saves the document in the XPS (XML Paper Specification) format. |
XAML_FIXED | Saves the document in the Extensible Application Markup Language (XAML) format as a fixed document. |
SVG | Not supported in the FOSS edition — rejected at runtime. Saves the document in the Svg (Scalable Vector Graphics) format. |
HTML_FIXED | Saves the document in the HTML format using absolutely positioned elements |
OPEN_XPS | Saves the document in the OpenXPS (Ecma-388) format. |
PS | Saves the document in the PS (PostScript) format. |
PCL | Saves the document in the PCL (Printer Control Language) format. |
HTML | Not supported in the FOSS edition — rejected at runtime. Saves the document in the HTML format. |
MHTML | Not supported in the FOSS edition — rejected at runtime. Saves the document in the MHTML (Web archive) format. |
EPUB | Not supported in the FOSS edition — rejected at runtime. Saves the document in the EPUB format. |
AZW_3 | Saves the document in the AZW3 format. |
MOBI | Saves the document in the MOBI format. |
ODT | Not supported in the FOSS edition — rejected at runtime. Saves the document as an ODF Text Document. |
OTT | Saves the document as an ODF Text Document Template. |
TEXT | Saves the document in the plain text format. |
XAML_FLOW | Beta. |
XAML_FLOW_PACK | Beta. |
MARKDOWN | Saves the document in the Markdown format. |
XLSX | Saves the document as an Office Open XML SpreadsheetML Document (macro-free). |
DOCLING | Saves the document in Docling JSON format. |
TIFF | Not supported in the FOSS edition — rejected at runtime. Renders a page or pages of the document and saves them into a single or multipage TIFF file. |
PNG | Not supported in the FOSS edition — rejected at runtime. Renders a page of the document and saves it as a PNG file. |
BMP | Renders a page of the document and saves it as a BMP file. |
EMF | Renders a page of the document and saves it as a vector EMF (Enhanced Meta File) file. |
JPEG | Renders a page of the document and saves it as a JPEG file. |
GIF | Renders a page of the document and saves it as a GIF file. |
EPS | Renders a page of the document and saves it as an EPS file. |
WEB_P | Renders a page of the document and saves it as a WebP file. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
values | int[] | Read | Returns array of SaveFormat values. |
Methods
| Signature | Description |
|---|---|
getName(saveFormat: int) → String | Returns JAVA_STYLE string representation of integer SaveFormat value. |
toString(saveFormat: int) → String | Returns DotNetStyle string representation of integer SaveFormat value. |
fromName(saveFormatName: String) → int | Returns integer representation by SaveFormat name. |
getValues() → int[] | Returns array of SaveFormat values. |