Supported Document Formats

Contents
[ ]

The following table indicates the input and output file formats supported by Aspose.Words for .NET:

Format Description Load Save Remarks
DOC Microsoft Word 97 – 2007 Document tick tick
DOT Microsoft Word 97 – 2007 Template tick tick
DocPreWord60 The document is in the Word 6 or Word 95 format tick  
DOCX Office Open XML WordprocessingML Document (macro-free) tick tick
DOCM Office Open XML WordprocessingML Macro-Enabled Document tick tick
DOTX Office Open XML WordprocessingML Template (macro-free) tick tick
DOTM Office Open XML WordprocessingML Macro-Enabled Template tick tick
XLSX XML-based file format for representing spreadsheets tick
FlatOpc Office Open XML WordprocessingML stored in a flat XML file instead of a ZIP package tick tick
FlatOpcMacroEnabled Office Open XML WordprocessingML Macro-Enabled Document stored in a flat XML file instead of a ZIP package tick tick
FlatOpcTemplate Office Open XML WordprocessingML Template (macro-free) stored in a flat XML file instead of a ZIP package tick tick
FlatOpcTemplateMacroEnabled Office Open XML WordprocessingML Macro-Enabled Template stored in a flat XML file instead of a ZIP package tick tick
XML XML document tick
RTF RTF format tick tick
WordML Microsoft Word 2003 WordprocessingML format tick tick
HTML HTML or XHTML format tick tick
MHTML MHTML (Web archive) format tick tick
MOBI MOBI is an eBook format used by the MobiPocket Reader and Amazon Kindle Readers tick tick
AZW3 AZW3 is an eBook format used by Amazon Kindle readers tick tick
CHM CHM (Compiled HTML Help) format tick  
ODT ODF Text Document tick tick
OTT ODF Text Document Template tick tick
TXT Plain Text tick tick
MD Markdown Document tick tick
PDF Adobe Portable Document format tick tick
EPS Encapsulated Postscript file format tick
XPS Saves the document in the XPS (XML Paper Specification) format tick
XamlFixed Saves the document in the Extensible Application Markup Language (XAML) format as a fixed document tick
SVG Saves the document in the SVG (Scalable Vector Graphics) format tick
HtmlFixed Saves the document in the HTML format using absolutely positioned elements tick
OpenXps Saves the document in the OpenXPS (Ecma-388) format tick
PS Saves the document in the PS (PostScript) format tick
PCL Saves the document in the PCL (Printer Control Language) format tick
EPUB IDPF EPUB format tick tick
XamlFlow Beta
Saves the document in the Extensible Application Markup Language (XAML) format as a flow document
tick
XamlFlowPack Beta
Saves the document in the Extensible Application Markup Language (XAML) package format as a flow document
tick
TIFF Renders a page or pages of the document and saves them into a single or multipage TIFF file tick
PNG Renders a page of the document and saves it as a PNG file tick
BMP Renders a page of the document and saves it as a BMP file tick
EMF Renders a page of the document and saves it as a vector EMF (Enhanced Meta File) file tick
JPEG Renders a page of the document and saves it as a JPEG file tick
GIF Renders a page of the document and saves it as a GIF file tick
WebP Google image compression format tick

FAQ

  1. Q: Which file formats can Aspose.Words load?
    A: Aspose.Words can load a wide range of Word processing formats, including DOC, DOCX, DOCM, DOT, DOTX, DOTM, RTF, HTML, MHTML, ODT, OTT, TXT, MD, XML, and PDF. It also supports loading of some e‑book formats such as EPUB, MOBI, and AZW3. Formats marked with a tick under the Load column in the table are supported for loading.

  2. Q: Which file formats can Aspose.Words save?
    A: The library can save documents to most of the formats it can load, plus several additional output types. Supported save formats include DOC, DOCX, DOCM, DOTX, DOTM, RTF, HTML, MHTML, ODT, OTT, TXT, MD, PDF, EPUB, and various image formats (PNG, JPEG, GIF, BMP, EMF, TIFF, SVG). The Save column in the table indicates the formats that can be written.

  3. Q: Can Aspose.Words convert a PDF document to HTML?
    A: Yes. PDF is a supported input format, and HTML is a supported output format. Load the PDF with Document doc = new Document("input.pdf"); and then save it using doc.Save("output.html", SaveFormat.Html);. This conversion preserves the layout and text as closely as possible.

  4. Q: Is it possible to export a document as an image such as PNG or JPEG?
    A: Absolutely. Aspose.Words can render each page of a document to raster image formats. After loading the document, use doc.Save("page.png", SaveFormat.Png); or doc.Save("page.jpeg", SaveFormat.Jpeg);. You can also generate multi‑page TIFF files by specifying SaveFormat.Tiff.

  5. Q: Does Aspose.Words support e‑book formats like EPUB, MOBI, and AZW3?
    A: Yes. EPUB is fully supported for both loading and saving. MOBI and AZW3 can be loaded, and you can save to EPUB, which is the recommended e‑book output format for further distribution. Use the appropriate SaveFormat enumeration values when calling Document.Save.