Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
The following table indicates the file formats supported by Aspose.Words for C++:
| Format | Description | Load | Save | Remarks |
|---|---|---|---|---|
DOC |
Microsoft Word 97 – 2007 Document |
|
|
|
DOT |
Microsoft Word 97 – 2007 Template |
|
|
|
DocPreWord60 |
The document is in the Word 6 or Word 95 format |
|
||
DOCX |
Office Open XML WordprocessingML Document (macro-free) |
|
|
|
DOCM |
Office Open XML WordprocessingML Macro-Enabled Document |
|
|
|
DOTX |
Office Open XML WordprocessingML Template (macro-free) |
|
|
|
DOTM |
Office Open XML WordprocessingML Macro-Enabled Template |
|
|
|
XLSX |
XML-based file format for representing spreadsheets |
|
||
FlatOpc |
Office Open XML WordprocessingML stored in a flat XML file instead of a ZIP package |
|
|
|
FlatOpcMacroEnabled |
Office Open XML WordprocessingML Macro-Enabled Document stored in a flat XML file instead of a ZIP package |
|
|
|
FlatOpcTemplate |
Office Open XML WordprocessingML Template (macro-free) stored in a flat XML file instead of a ZIP package |
|
|
|
FlatOpcTemplateMacroEnabled |
Office Open XML WordprocessingML Macro-Enabled Template stored in a flat XML file instead of a ZIP package |
|
|
|
XML |
XML document |
|
||
RTF |
RTF format |
|
|
|
WordML |
Microsoft Word 2003 WordprocessingML format |
|
|
|
PDF |
Saves the document as PDF (Adobe Portable Document) format |
|
||
EPS |
Encapsulated Postscript file format |
|
||
XPS |
Saves the document in the XPS (XML Paper Specification) format. |
|
||
XamlFixed |
Saves the document in the Extensible Application Markup Language (XAML) package format |
|
||
SVG |
Saves the document in the SVG (Scalable Vector Graphics) format |
|
||
HtmlFixed |
Saves the document in the HTML format using absolutely positioned elements |
|
||
OpenXPS |
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 |
HTML or XHTML format |
|
|
|
MHTML |
MHTML (Web archive) format |
|
|
|
EPUB |
IDPF EPUB format |
|
|
|
ODT |
ODF Text Document |
|
|
|
OTT |
ODF Text Document Template |
|
|
|
TXT |
Plain Text |
|
|
|
MOBI |
eBook format used by the MobiPocket Reader and Amazon Kindle Readers |
|
|
|
AZW3 |
eBook format used by Amazon Kindle readers |
|
|
|
CHM |
CHM (Compiled HTML Help) format |
|
||
XamlFlow |
Beta Saves the document in the Extensible Application Markup Language (XAML) format as a flow document |
|
||
XamlFlowPack |
Beta Saves the document in the Extensible Application Markup Language (XAML) package format as a flow document |
|
||
MD |
Markdown Document |
|
|
|
TIFF |
Renders a page or pages of the document and saves them into a single or multipage TIFF file |
|
||
PNG |
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 |
|
Q: Which document formats can Aspose.Words for C++ both load and save?
A: Aspose.Words for C++ can load formats such as DOC, DOCX, DOCM, DOT, DOTX, DOTM, RTF, XML, MD, HTML, and many others. It can save to all loadable formats plus PDF, XPS, SVG, EPS, PS, PCL, various image formats (PNG, JPEG, TIFF, etc.), and e‑book formats like EPUB, MOBI, and AZW3. The table above shows the exact load/save support for each format.
Q: Can I convert a Markdown (.md) file to a Word document (.docx) using Aspose.Words for C++?
A: Yes. Load the Markdown file with Document doc("input.md"); and then save it as DOCX: doc->Save("output.docx");. The conversion preserves headings, lists, tables, and basic formatting supported by the Markdown parser.
Q: How do I generate a PDF from C++ code with Aspose.Words?
A: Create a Document object, optionally modify it, and call Save with the PDF extension:
System::SharedPtr<Aspose::Words::Document> doc = System::MakeObject<Aspose::Words::Document>("input.docx");
doc->Save("output.pdf");
The library automatically handles font embedding and layout conversion.
Q: Is it possible to convert RTF to HTML while keeping the original formatting (e.g., header text rotation)?
A: Yes. Load the RTF file and save it as HTML:
System::SharedPtr<Aspose::Words::Document> doc = System::MakeObject<Aspose::Words::Document>("input.rtf");
doc->Save("output.html");
Aspose.Words preserves most formatting, including rotated text, tables, and styles. For fine‑tuned control, use HtmlSaveOptions to adjust CSS handling.
Q: Are there any limitations when converting to or from e‑book formats such as MOBI or AZW3?
A: Conversion to MOBI and AZW3 is supported for saving only; these formats cannot be loaded. When saving, complex Word features (e.g., advanced tables, certain WordArt) may be simplified to fit the e‑book specifications. Use EpubSaveOptions or MobiSaveOptions to control image quality and metadata.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.