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)

@Lokesh7351
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 ID(s): CONVERSIONCLOUD-552

Issue still not Resolved

@Lokesh7351

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

@Lokesh7351

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

sample files.zip (172.7 KB)

@Lokesh7351

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

@Lokesh7351

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

@Lokesh7351

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);
console.log(request); 
let result = await api.convertDocumentDirect(request);

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