public class SaveFormat
extends java.lang.Object
Examples:
Shows how to convert from DOCX to HTML format.
Document doc = new Document(getMyDir() + "Document.docx");
doc.save(getArtifactsDir() + "Document.ConvertToHtml.html", SaveFormat.HTML);
M:Aspose.Words.Document.Save(System.IO.Stream,Aspose.Words.SaveFormat)SaveOptions| Modifier and Type | Field and Description |
|---|---|
static int |
AZW_3
Saves the document in the AZW3 format.
|
static int |
BMP
Renders a page of the document and saves it as a BMP file.
|
static int |
DOC
Saves the document in the Microsoft Word 97 - 2007 Document format.
|
static int |
DOCM
Saves the document as an Office Open XML WordprocessingML Macro-Enabled Document.
|
static int |
DOCX
Saves the document as an Office Open XML WordprocessingML Document (macro-free).
|
static int |
DOT
Saves the document in the Microsoft Word 97 - 2007 Template format.
|
static int |
DOTM
Saves the document as an Office Open XML WordprocessingML Macro-Enabled Template.
|
static int |
DOTX
Saves the document as an Office Open XML WordprocessingML Template (macro-free).
|
static int |
EMF
Renders a page of the document and saves it as a vector EMF (Enhanced Meta File) file.
|
static int |
EPS
Renders a page of the document and saves it as an EPS file.
|
static int |
EPUB
Saves the document in the EPUB format.
|
static int |
FLAT_OPC
Saves the document as an Office Open XML WordprocessingML stored in a flat XML file instead of a ZIP package.
|
static int |
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.
|
static int |
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.
|
static int |
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.
|
static int |
GIF
Renders a page of the document and saves it as a GIF file.
|
static int |
HTML
Saves the document in the HTML format.
|
static int |
HTML_FIXED
Saves the document in the HTML format using absolutely positioned elements
|
static int |
JPEG
Renders a page of the document and saves it as a JPEG file.
|
static int |
length |
static int |
MARKDOWN
Saves the document in the Markdown format.
|
static int |
MHTML
Saves the document in the MHTML (Web archive) format.
|
static int |
MOBI
Saves the document in the MOBI format.
|
static int |
ODT
Saves the document as an ODF Text Document.
|
static int |
OPEN_XPS
Saves the document in the OpenXPS (Ecma-388) format.
|
static int |
OTT
Saves the document as an ODF Text Document Template.
|
static int |
PCL
Saves the document in the PCL (Printer Control Language) format.
|
static int |
PDF
Saves the document as PDF (Adobe Portable Document) format.
|
static int |
PNG
Renders a page of the document and saves it as a PNG file.
|
static int |
PS
Saves the document in the PS (PostScript) format.
|
static int |
RTF
Saves the document in the RTF format.
|
static int |
SVG
Saves the document in the Svg (Scalable Vector Graphics) format.
|
static int |
TEXT
Saves the document in the plain text format.
|
static int |
TIFF
Renders a page or pages of the document and saves them into a single or multipage TIFF file.
|
static int |
UNKNOWN
Default, invalid value for file format.
|
static int |
WEB_P
Renders a page of the document and saves it as a WebP file.
|
static int |
WORD_ML
Saves the document in the Microsoft Word 2003 WordprocessingML format.
|
static int |
XAML_FIXED
Saves the document in the Extensible Application Markup Language (XAML) format as a fixed document.
|
static int |
XAML_FLOW
Beta. Saves the document in the Extensible Application Markup Language (XAML) format as a flow document.
|
static int |
XAML_FLOW_PACK
Beta. Saves the document in the Extensible Application Markup Language (XAML) package format as a flow document.
|
static int |
XLSX
Saves the document as an Office Open XML SpreadsheetML Document (macro-free).
|
static int |
XPS
Saves the document in the XPS (XML Paper Specification) format.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
fromName(java.lang.String saveFormatName) |
static java.lang.String |
getName(int saveFormat) |
static int[] |
getValues() |
static java.lang.String |
toString(int saveFormat) |
public static int UNKNOWN
public static int DOC
public static int DOT
public static int DOCX
public static int DOCM
public static int DOTX
public static int DOTM
public static int FLAT_OPC
public static int FLAT_OPC_MACRO_ENABLED
public static int FLAT_OPC_TEMPLATE
public static int FLAT_OPC_TEMPLATE_MACRO_ENABLED
public static int RTF
public static int WORD_ML
public static int PDF
public static int XPS
public static int XAML_FIXED
public static int SVG
public static int HTML_FIXED
public static int OPEN_XPS
public static int PS
public static int PCL
public static int HTML
public static int MHTML
public static int EPUB
public static int AZW_3
public static int MOBI
public static int ODT
public static int OTT
public static int TEXT
public static int XAML_FLOW
public static int XAML_FLOW_PACK
public static int MARKDOWN
public static int XLSX
public static int TIFF
public static int PNG
public static int BMP
public static int EMF
public static int JPEG
public static int GIF
public static int EPS
public static int WEB_P
public static int length