public class SaveFormat
Example:
Document doc = new Document(getMyDir() + "Document.docx");
doc.save(getArtifactsDir() + "Document.ConvertToHtml.html", SaveFormat.HTML);
Field Summary | ||
---|---|---|
static final int | UNKNOWN | |
Default, invalid value for file format.
|
||
static final int | DOC | |
Saves the document in the Microsoft Word 97 - 2007 Document format.
|
||
static final int | DOT | |
Saves the document in the Microsoft Word 97 - 2007 Template format.
|
||
static final int | DOCX | |
Saves the document as an Office Open XML WordprocessingML Document (macro-free).
|
||
static final int | DOCM | |
Saves the document as an Office Open XML WordprocessingML Macro-Enabled Document.
|
||
static final int | DOTX | |
Saves the document as an Office Open XML WordprocessingML Template (macro-free).
|
||
static final int | DOTM | |
Saves the document as an Office Open XML WordprocessingML Macro-Enabled Template.
|
||
static final int | FLAT_OPC | |
Saves the document as an Office Open XML WordprocessingML stored in a flat XML file instead of a ZIP package.
|
||
static final 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 final 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 final 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 final int | RTF | |
Saves the document in the RTF format.
All characters above 7-bits are escaped as hexadecimal or Unicode characters.
|
||
static final int | WORD_ML | |
Saves the document in the Microsoft Word 2003 WordprocessingML format.
|
||
static final int | PDF | |
Saves the document as PDF (Adobe Portable Document) format.
|
||
static final int | XPS | |
Saves the document in the XPS (XML Paper Specification) format.
|
||
static final int | XAML_FIXED | |
Saves the document in the Extensible Application Markup Language (XAML) format as a fixed document.
|
||
static final int | SVG | |
Saves the document in the Svg (Scalable Vector Graphics) format.
|
||
static final int | HTML_FIXED | |
Saves the document in the HTML format using absolutely positioned elements
|
||
static final int | OPEN_XPS | |
Saves the document in the OpenXPS (Ecma-388) format.
|
||
static final int | PS | |
Saves the document in the PS (PostScript) format.
|
||
static final int | PCL | |
Saves the document in the PCL (Printer Control Language) format.
|
||
static final int | HTML | |
Saves the document in the HTML format.
|
||
static final int | MHTML | |
Saves the document in the MHTML (Web archive) format.
|
||
static final int | EPUB | |
Saves the document in the IDPF EPUB format.
|
||
static final int | ODT | |
Saves the document as an ODF Text Document.
|
||
static final int | OTT | |
Saves the document as an ODF Text Document Template.
|
||
static final int | TEXT | |
Saves the document in the plain text format.
|
||
static final int | XAML_FLOW | |
Beta. Saves the document in the Extensible Application Markup Language (XAML) format as a flow document.
|
||
static final int | XAML_FLOW_PACK | |
Beta. Saves the document in the Extensible Application Markup Language (XAML) package format as a flow document.
|
||
static final int | MARKDOWN | |
Saves the document in the Markdown format.
|
||
static final int | TIFF | |
Renders a page or pages of the document and saves them into a single or multipage TIFF file.
|
||
static final int | PNG | |
Renders a page of the document and saves it as a PNG file.
|
||
static final int | BMP | |
Renders a page of the document and saves it as a BMP file.
|
||
static final int | EMF | |
Renders a page of the document and saves it as a vector EMF (Enhanced Meta File) file.
|
||
static final int | JPEG | |
Renders a page of the document and saves it as a JPEG file.
|
||
static final int | GIF | |
Renders a page of the document and saves it as a GIF file.
|
public static final int UNKNOWN
public static final int DOC
public static final int DOT
public static final int DOCX
public static final int DOCM
public static final int DOTX
public static final int DOTM
public static final int FLAT_OPC
public static final int FLAT_OPC_MACRO_ENABLED
public static final int FLAT_OPC_TEMPLATE
public static final int FLAT_OPC_TEMPLATE_MACRO_ENABLED
public static final int RTF
public static final int WORD_ML
public static final int PDF
public static final int XPS
public static final int XAML_FIXED
public static final int SVG
public static final int HTML_FIXED
public static final int OPEN_XPS
public static final int PS
public static final int PCL
public static final int HTML
public static final int MHTML
public static final int EPUB
public static final int ODT
public static final int OTT
public static final int TEXT
public static final int XAML_FLOW
public static final int XAML_FLOW_PACK
public static final int MARKDOWN
public static final int TIFF
public static final int PNG
public static final int BMP
public static final int EMF
public static final int JPEG
public static final int GIF