aspose-pdf-for-cpp

In this post, we will demonstrate the powerful features of Aspose.PDF for C++ to convert PDF files to Word DOC/DOCX file formats in C++.

C++ PDF to Word Converter Library - Free Download

Aspose.PDF for C++ lets you read and convert PDF to Microsoft Word file formats. C++ is one of the widely-used programming languages for writing fast and interoperable code that can be executed on a number of platforms. C++ application developers can use Aspose.PDF for C++ to write programs that can manipulate PDF documents without the need of installing any other software on end-user machines.

You can either install the library through NuGet or download it directly from the downloads section.

PM> Install-Package Aspose.PDF.Cpp

Convert PDF to Word DOC in C++

Aspose.PDF for C++ lets you read a PDF file and convert it to Microsoft Word Binary file format (.doc) with just a couple of lines. The Document class lets you read a PDF file from disc or stream, use the Save method for saving it in different file formats. Use the SaveFormat enumeration to specify the output file format as shown in the code sample below.

auto doc = MakeObject<Document>(u"..\\Data\\Document\\input.pdf");
doc->Save(u"..\\Data\\Document\\input_out.doc", SaveFormat:: Doc);

C++ Convert PDF to Word DOCX

DOCX is the modern Word Documents file format that is based on Office Open XML file format specifications. Aspose.PDF for C++ can convert PDF files to DOCX with the same simplicity as it converts to DOC file format. This is as illustrated in the following sample code.

auto doc = MakeObject<Document>(u"..\\Data\\Document\\input.pdf");
doc->Save(u"..\\Data\\Document\\input_out.docx", SaveFormat::DocX);

C++ PDF to Word Converter - Get a Free License

You can try Aspose.PDF for C++ without evaluation limitations by getting [a free temporary license][32].

Conclusion

In this article, you have learned how to convert PDF to Word in C++. The code samples have demonstrated how to perform PDF to Word conversion within a couple of steps. Want to try it out? Download your free copy of the Aspose.PDF for C++ and get started in no time by following the detailed developer guide from documentation. In case of any queries, feel free to write to us on Aspose.PDF forum to get further assistance.