Convert PDF to DOC and DOCX in CPP

Aspose.PDF for C++ API lets you read and convert PDF files to Microsoft Word DOC and DOCX file formats with simple lines of code. The API focuses on providing quality output with efficient processing in your C++ applications without being worried about the underlying file formats. The following code samples show how easy it is to convert PDF files to DOC and DOCX using our API.

Convert PDF to DOC

In order to convert PDF to DOC, Aspose.PDF for CPP offers Save method of Document class. You need to pass the output path and enum SaveFormat:: Doc to the Save method to convert PDF to DOC. The following code snippet shows how to convert PDF to DOC:

Convert PDF to DOCX

In order to convert PDF to DOCX, Aspose.PDF for CPP offers Save method of Document class. You need to pass the output path and enum SaveFormat:: DocX to the Save method to convert PDF to DOCX. The following code snippet shows how to convert PDF to DOCX:

Save On Memory

In order to convert PDF to DOC with less memory consumption, Aspose.PDF for CPP offers Save method of Document class.  To save memory, you need to pass the MemoryStream and enum SaveFormat:: Doc to the Save method to convert PDF to DOC. The following code snippet shows how to convert PDF to DOC with less memory consumption: