Aspose.Words  for C++

eSign DOCX Formats in C++

Native and high performance DOCX document electronic signature using server-side Aspose.Words for C++ APIs, without the use of any software like Microsoft or Open Office, Adobe PDF.

How to Digitally Sign DOCX File Using C++

In order to electronically sign DOCX file, we’ll use

Aspose.Words for C++

API which is a feature-rich, powerful and easy to use document manipulation and digital signature API for C++ platform. You can download its latest version directly, just open


package manager, search for Aspose.Words.Cpp and install. You may also use the following command from the Package Manager Console.


PM> Install-Package Aspose.Words.Cpp

Steps for e-Signing DOCX Files in C++

A basic document digital signature with

Aspose.Words for C++

APIs can be done with just few lines of code. One can add electronic signature as drawing, text and images to multiple files. Moreover, eSigned documents can be saved as PDF, JPEG, HTML, OpenOffice and other formats.

  • Create signature using CertificateHolder
  • Use DigitalSignatureUtil Sign (…) method for electronically signing

System Requirements

Aspose.Words for C++ supports on all major platforms and Operating Systems. Please make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with C++ Runtime Environment for Windows 32 bit, Windows 64 bit and Linux 64 bit.
  • Aspose.Words for C++ DLL referenced in your project.

e-Sign DOCX Files - C++

System::SharedPtr<CertificateHolder> certHolder = CertificateHolder::Create(inputDataDir + u"signature.pfx", u"signature");
System::String outputPath = outputDataDir + u"SigningSignatureLine.SimpleDocumentSigning_out.docx";
DigitalSignatureUtil::Sign(inputDataDir + u"Document.Signed.docx", outputPath, certHolder);  
  • About Aspose.Words for C++ API

    Aspose.Words API can be used to load, view and convert Microsoft Word and OpenDocument Formats like DOC, DOCX, ODT to PDF, XPS, HTML and various other formats. You can also create new documents from scratch and save them in the supported formats. Aspose.Words is a standalone API that is suitable for server side and backend systems where high performance is required. It does not depend on any software like Microsoft or OpenOffice. ‎

    Online DOCX eSignature Live Demos

    Other Supported Electronic Signature Formats

    Using C++, One can digitally sign easily of many other formats including

    DOC (Microsoft Word Binary Format)
    DOT (Microsoft Word Template Files)
    DOTX (Microsoft Word Template File)
    HTML (Hyper Text Markup Language)
    ODT (OpenDocument Text File Format)
    OTT (OpenDocument Standard Format)
    RTF (Rich Text Format)
    TXT (Text Document)
    XHTML (XML Text Based Markup)