Pdf to docx conversion issue

In the converted Docx file .the Layout is getting disrupted.Bellow is my code.

    const loadOptions = new conversion_cloud.PdfLoadOptions();
    loadOptions.format = "pdf";
    let convertOptions = new conversion_cloud.WordProcessingConvertOptions();
    convertOptions.pdfRecognitionMode = conversion_cloud.WordProcessingConvertOptions.PdfRecognitionModeEnum;

    let result = await convertApi.convertDocumentDirect(new conversion_cloud.ConvertDocumentDirectRequest(input.toFormat, input.fileContent, undefined, undefined, loadOptions, convertOptions));

MyPdf2.pdf (143.2 KB)

output.docx (108.4 KB)

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.


Issue still not Resolved


It is resolved in the upcoming release, GroupDocs.Conversion Cloud 24.2. We will notify you as soon as the new version is published and becomes available.

The issues you have found earlier (filed as CONVERSIONCLOUD-552) have been fixed in this update. This message was posted using Bugs notification tool by sergei.terentev

still issue exist


We will appreciate it if you could please share some screenshots of the issues.

sample files.zip (172.7 KB)


Please elaborate on what exact formatting issue you are facing in the output. Here is a screenshot of the DOCX output.

image.png (70.4 KB)

text is overlapping


As I shared the screenshot of the output Word document, we were unable to notice the text overlapping issue. It seems your document editor is having an issue; we are using MS Word 2019. You may please check the document on another system.

can u share me the code for the same


Please see the sample code. However, it does not seem to be a code issue, but with the document viewer.

const convertDocumentOnline = async () => {
// construct Api
const api = GroupDocs.ConvertApi.fromKeys(appSid, appKey);

//const convertOptions = new GroupDocs.DocxConvertOptions();
const file = fs.readFileSync("C:/Downloads/MyPdf2.pdf");
const localPath = "C:/Downloads/MyPdf2node.docx";

let loadOptions = new GroupDocs.PdfLoadOptions();
loadOptions.format = 'pdf';

// Html Convert Option
let convertOptions = new GroupDocs.WordProcessingConvertOptions();
convertOptions.pdfRecognitionMode = GroupDocs.WordProcessingConvertOptions.PdfRecognitionModeEnum;  

try {
let request = new GroupDocs.ConvertDocumentDirectRequest("docx",file,undefined,undefined,loadOptions,convertOptions);
let result = await api.convertDocumentDirect(request);

fs.writeFileSync(localPath, result);
} catch (err) {
throw err;