C++ library to manipulate Word documents

Develop high performance applications having the ability to Create or Edit Word documents.

  Download Free Trial
Aspose.Words for C++

Aspose.Words for C++

 
  

Aspose.Words for C++ is an advanced Word Document Processing Library that enables you to perform a wide range of document processing tasks including document creation & manipulation, directly within your own C++ applications.

  

Advanced C++ Word Document Processing API Features

 

 

Join & split documents on the fly

 

Manipulate built-in & custom properties

 

Enumerate over document 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

Programming with Document Object Model

Aspose.Words for C++ allows developers to create, build and modify documents including document formatting with an intuitive document object model that mimics Microsoft Word in terminology & features. C++ developers can dynamically create, modify, extract and replace all document elements including sections, tables, bookmarks, fields, form fields, comments, images, styles and so on. 

Join or Append Documents

Aspose.Words for C++ supports joining & appending multiple documents into one. This process is very simple as well as configurable, providing the means to control how the documents are joined. C++ Word Processing Library also allows to reset the page numbering after joining the documents.

Join 2 documents - C++


// load source & destination documents
System::SharedPtr dstDoc = System::MakeObject(dir + u"destination.doc");
System::SharedPtr srcDoc = System::MakeObject(dir + u"source.doc");
    
// set the appended document to start on a new page.
srcDoc->get_FirstSection()->get_PageSetup()->set_SectionStart(Aspose::Words::SectionStart::NewPage);
// append the source document using the original styles found in the source document.
dstDoc->AppendDocument(srcDoc, Aspose::Words::ImportFormatMode::KeepSourceFormatting);
// save result
dstDoc->Save(dir + u"output.doc);

Add Watermark to Documents

Aspose.Words for C++ provides extensive support for watermarks. While using Aspose.Words for C++, 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.

Easy to Use Security Options

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.

Protect/un-protect documents - C++

// load document to be processed
System::SharedPtr document = System::MakeObject(dir + u"template.doc");
// protect document 
document->Protect(Aspose::Words::ProtectionType::AllowOnlyFormFields, u"password");
// un-protect document
document->Unprotect(); 
  

Support and Learning Resources

 
  

Aspose.Words offers individual Word processing APIs for other popular development environments as listed below: