Convert a Document
The ability to easily and reliably convert documents from one format to another is one of the main feature areas of Aspose.Words. Such a conversion is nothing more than a combination of loading and saving operations.
What Is Document Conversion
Almost any task that you want to perform with Aspose.Words involves loading or saving a document in some format. As mentioned in previous sections, the LoadFormat enumeration specifies all load or import formats supported by Aspose.Words, and the SaveFormat enumeration specifies all save or export formats supported by Aspose.Words. Thus, Aspose.Words can convert a document from any supported load format into any supported save format. As a rule, such a conversion requires several stages of calculation. However from the user perspective conversion from a document format to another one is itself very simple, and can be accomplished with just two steps:
- Load your document into a Document object using one of its constructors.
- Invoke one of the Save methods on the Document object and specify the desired output format.
Try online
You can try the conversion functionality by using our Free online converter tool.
Popular Conversions
The current section describes popular conversions, as well as ideas for working with some combinations of formats when loading and saving. Using the examples of this section, you can understand that the conversion process itself is quite universal, and there is no point in describing all the possible options, since there are several hundred of them due to the large number of formats supported by Aspose.Words for C++.
Convert Word to PDF
- Convert DOC to PDF
- Convert DOCX to PDF
- and others
Convert Image to PDF
- Convert JPG to PDF
- Convert TIFF to PDF
- and others
Convert Web Formats to PDF
- Convert Markdown to PDF
- Convert HTML to PDF
- Convert MHT (MHTML) to PDF
- and others
Convert Other Formats to PDF
- Convert RTF to PDF
- Convert ODT to PDF
- Convert TXT to PDF
- Convert Mobi to PDF
- and others
Convert a Document to an Image
- Convert DOCX to JPG
- Convert DOC to PNG
- and others
Convert a Document to Markdown
- Convert a Document to Markdown
- Convert HTML to Markdown
- and others
Convert a Document to HTML
- Convert Word to HTML
- Convert Markdown to HTML
- Convert Mobi to EPUB
- and others
Other Examples
- Convert a Document to MHTML and Send It by Email
- Convert DOCX to DOC
- Convert HTML to Word
- and others