A standalone C++ class library to load, save, format & convert Microsoft Word® documents without Office Automation. Aspose.Words for C++ is a powerful on premise API that can be used for a great range of document processing tasks such as; working with documents, sections, tables, bookmarks, fields, form fields, DocumentBuilder, ranges, comments, content control SDT, images, styles, charts, watermarks, lists, shapes, mail merge, rendering, printing and much more.
This repository contains Examples and Showcases for Aspose.Words for C++ to help you learn and write your own applications.
Directory | Description |
---|---|
Examples | A collection of C++ examples that help you learn and explore the API features |
Showcases | Standalone ready-to-use applications that demonstrate some specific use cases |
- Detect the file format and check file format compatibility.
- Convert Word Documents to other supported formats.
- Serialize a document object to fetch a byte array and vice versa.
- Supports conversion to various PDF standards.
- Export fonts to HTML in
Base64
encoding. - Save password encrypted Word document.
- Specify the OOXML specification.
- Compress all the metafiles, be it small or large.
- Enable bi-directional marks to add support for right to left languages.
- Access the VBA Project to extend the functionality.
- Read, write or modify VBA Macros.
Microsoft Word: DOC, DOT, DOCX, DOCM, DOTX, DOTM, RTF, FlatOPC, FlatOpcMacroEnabled, FlatOpcTemplate, FlatOpcTemplateMacroEnabled
WordprocessingML: WordML
Web: HTML, MHTML
OpenOffice: ODT
Other: TXT, MOBI
Fixed Layout: PDF, XPS, OpenXPS
Graphics: SVG, EMF
Web: HtmlFixed
Other: PS, PCL, XamlFlow, XamlFixed, EPUB
Are you ready to give Aspose.Words for C++ a try? Simply execute Install-Package Aspose.Words.Cpp
from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.Words for C++ and want to upgrade the version, please execute Update-Package Aspose.Words.Cpp
to get the latest version.
// create a blank document.
System::SharedPtr<Document> doc = System::MakeObject<Document>();
// the DocumentBuilder class provides members to easily add content to a document.
System::SharedPtr<DocumentBuilder> builder = System::MakeObject<DocumentBuilder>(doc);
// write a new paragraph in the document with the text "Hello World!"
builder->Writeln(u"Hello World!");
// save the document.
// the format to save as is inferred from the extension of the file name.
doc->Save(u"output.docx");
// load the document from disk.
System::SharedPtr<Document> doc = System::MakeObject<Document>(u"template.doc");
// save the document in EPUB format.
doc->Save(u"output.epub");
Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License