Aspose.Words for C++ is an advanced Word Document Processing API to perform a wide range of processing tasks. API provides document formatting, manipulation, mail merge, watermarking and much more capabilities directly within your own C++ applications without requiring Microsoft Word. API supports most of the Microsoft Word formats, and can render the document pages to a number of image formats.
A generic view of the capabilities of API.
The library fully supports C++ applications developed on the following platforms having system requirements.
Aspose.Words for C++ supports most popular Word Processing file formats.
Join & split files on the fly
Manipulate built-in & custom properties
Enumerate over file content
Preserve OLE objects and ActiveX controls
Manipulate fonts, colors, effects, borders & shading
Manipulate indents, spacing, borders, shading, tab stops
Manipulate bulleted and numbered lists
Manipulate paper size, margins & orientation
Find, replace & highlight text
Mail Merge support
Update fields except page layout to porting
Convert EquationXML to Office Math
API enables C++ applications to automate Microsoft Word file creation as well as open and modify files including formatting with an intuitive document object model that mimics Microsoft Word in terminology & features. C++ developers can dynamically create, modify, extract and replace all elements including sections, paragraphs, tables, bookmarks, fields, form fields, comments, images, styles and so on.
Aspose.Words for C++ supports joining & appending multiple files into one. This process is very simple as well as configurable, providing the means to control how the files are joined. C++ Word processing library also allows resetting the page numbering after joining the documents.
// load source & destination files System::SharedPtr dstDoc = System::MakeObject(dir + u"destination.doc"); System::SharedPtr srcDoc = System::MakeObject(dir + u"source.doc"); // set the appended file to start on a new page. srcDoc->get_FirstSection()->get_PageSetup()->set_SectionStart(Aspose::Words::SectionStart::NewPage); // append the source file using the original styles found in the source file. dstDoc->AppendDocument(srcDoc, Aspose::Words::ImportFormatMode::KeepSourceFormatting); // save result dstDoc->Save(dir + u"output.doc);
Aspose.Words for C++ provides extensive support for watermarks. While using API, it is very easy to insert any shape, image or text as a watermark with the ability to format it in any way. This provides the ability to create watermark of any imaginable type.
Aspose.Words for C++ offers the facility to protect & un-protect documents with single line of code. You may set the protection in a way that the user can make only limited changes, such as adding annotations, making revisions or completing a form.
// load document to be processed System::SharedPtr wrdoc = System::MakeObject(dir + u"template.doc"); // protect file wrdoc->Protect(Aspose::Words::ProtectionType::AllowOnlyFormFields, u"password"); // un-protect file wrdoc->Unprotect();