PDF to DOCX conversion is required in various cases to make read-only text in PDF editable. Thus, you can modify the content of converted DOCX file and then save it as a PDF. In this article, you will learn how to convert PDF to DOCX programmatically in C++.
C++ Library for PDF to DOCX Conversion - Free Download
Aspose.PDF for C++ lets you read and convert PDF documents to Microsoft Word file formats. C++ application developers can use this library to write programs that can manipulate PDF documents without the need of installing any other software. 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 DOCX in C++
DOCX is the modern Word Documents file format that is based on Office Open XML file format specifications. Aspose.PDF for C++ can convert a PDF to DOCX with high fidelity. The Document class lets you read a PDF file from disc or stream and Document->Save method is used to save PDF in DOCX format. You can use the SaveFormat enumeration to specify DOCX as the output file format.
The following code sample shows how to convert a PDF file to DOCX in C++.
auto doc = MakeObject<Document>(u"input.pdf"); doc->Save(u"out.docx", SaveFormat::DocX);
C++ PDF to DOCX Converter - Get a Free License
You can try Aspose.PDF for C++ without evaluation limitations by getting a free temporary license.
In this article, we have shown you how to convert a PDF file to DOCX in C++. Download your free copy of the Aspose.PDF for C++ and get started in no time by following the developer guide from documentation. In case of any queries, feel free to write to us on our forum to get further assistance.