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

ValueDescription
UNKNOWNDefault, invalid value for file format.
DOCNot supported in the FOSS edition — rejected at runtime. Saves the document in the Microsoft Word 97 - 2007 Document format.
DOTSaves the document in the Microsoft Word 97 - 2007 Template format.
DOCXSaves the document as an Office Open XML WordprocessingML Document (macro-free).
DOCMSaves the document as an Office Open XML WordprocessingML Macro-Enabled Document.
DOTXSaves the document as an Office Open XML WordprocessingML Template (macro-free).
DOTMSaves the document as an Office Open XML WordprocessingML Macro-Enabled Template.
FLAT_OPCSaves the document as an Office Open XML WordprocessingML stored in a flat XML file instead of a ZIP package.
FLAT_OPC_MACRO_ENABLEDSaves the document as an Office Open XML WordprocessingML Macro-Enabled Document stored in a flat XML file instead of a ZIP package.
FLAT_OPC_TEMPLATESaves 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_ENABLEDSaves the document as an Office 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. Saves the document in the RTF format.
WORD_MLNot supported in the FOSS edition — rejected at runtime. Saves the document in the Microsoft Word 2003 WordprocessingML format.
PDFNot supported in the FOSS edition — rejected at runtime. Saves the document as PDF (Adobe Portable Document) format.
XPSNot supported in the FOSS edition — rejected at runtime. Saves the document in the XPS (XML Paper Specification) format.
XAML_FIXEDSaves the document in the Extensible Application Markup Language (XAML) format as a fixed document.
SVGNot supported in the FOSS edition — rejected at runtime. Saves the document in the Svg (Scalable Vector Graphics) format.
HTML_FIXEDSaves the document in the HTML format using absolutely positioned elements
OPEN_XPSSaves the document in the OpenXPS (Ecma-388) format.
PSSaves the document in the PS (PostScript) format.
PCLSaves the document in the PCL (Printer Control Language) format.
HTMLNot supported in the FOSS edition — rejected at runtime. Saves the document in the HTML format.
MHTMLNot supported in the FOSS edition — rejected at runtime. Saves the document in the MHTML (Web archive) format.
EPUBNot supported in the FOSS edition — rejected at runtime. Saves the document in the EPUB format.
AZW_3Saves the document in the AZW3 format.
MOBISaves the document in the MOBI format.
ODTNot supported in the FOSS edition — rejected at runtime. Saves the document as an ODF Text Document.
OTTSaves the document as an ODF Text Document Template.
TEXTSaves the document in the plain text format.
XAML_FLOWBeta.
XAML_FLOW_PACKBeta.
MARKDOWNSaves the document in the Markdown format.
XLSXSaves the document as an Office Open XML SpreadsheetML Document (macro-free).
DOCLINGSaves the document in Docling JSON format.
TIFFNot 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.
PNGNot supported in the FOSS edition — rejected at runtime. Renders a page of the document and saves it as a PNG file.
BMPRenders a page of the document and saves it as a BMP file.
EMFRenders a page of the document and saves it as a vector EMF (Enhanced Meta File) file.
JPEGRenders a page of the document and saves it as a JPEG file.
GIFRenders a page of the document and saves it as a GIF file.
EPSRenders a page of the document and saves it as an EPS file.
WEB_PRenders a page of the document and saves it as a WebP file.

Properties

NameTypeAccessDescription
valuesint[]ReadReturns array of SaveFormat values.

Methods

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

See Also