Aspose PDF2Word is not converting to docx properly

Hi,

I am trying to convert PDF file to DOCX file but I am not able to convert it to properly.

AsposePdf.Document originalDoc = new AsposePdf.Document(fileName);
originalDoc.Save(saveAs);

EOB Example.pdf (278.2 KB)
W9 Example.pdf (137.2 KB)
sample-1_13566701_2023-08-10_08-08-05-AM.pdf (68.3 KB)
13566654_Test.pdf (891.6 KB)

I have tried with above pdf files but generated docx file is not able to open and sometimes I get below error as attached in the screenshot
MicrosoftTeams-image.png (51.6 KB)

@Dhanashri0709

Please check the attached DOCX files that we generated in our environment using Aspose.PDF for .NET 23.7 and the below code:

Document pdfDocument = new Document(dataDir + @"13566654_Test.pdf");

DocSaveOptions saveOptions = new DocSaveOptions();
saveOptions.Format = DocSaveOptions.DocFormat.DocX;
saveOptions.Mode = DocSaveOptions.RecognitionMode.Flow;
pdfDocument.Save(dataDir + @"13566654_Test.docx", saveOptions);

13566654_Test.docx (3.8 MB)
sample-1_13566701_2023-08-10_08-08-05-AM.docx (45.5 KB)
W9 Example.docx (533.0 KB)
EOB Example.docx (770.2 KB)

Please let us know if you find any issues in any of the attached output files.

Hi @asad.ali

Thank You. I have updated my version from 22.11 to 23.7 and I am able to create docx file but there one extra line is coming in the generated docx file(
Evaluation Only. Created with Aspose.PDF. Copyright 2002-2022 Aspose Pty Ltd*).

Can you please tell me how I can remove that programmatically?

I am applying Aspose_Total_Net license and I have bought total license.

Check the below attached dox file.
EOB Example.docx (770.5 KB)

@Dhanashri0709

You need to set the license properly for Aspose.PDF as well in your code snippet in order to remove the trial version watermark.

Aspose.Pdf.License license = new Aspose.Pdf.License();
license.SetLicense("Aspose.Total.NET.lic");

Hi @asad.ali

I have tried with below pdf, but formatting is not same in generated docx file.
Check attached pdf and docx file. I have updated the aspose version as per our previous discussion.

13566639_Test.docx (139.7 KB)
13566639_Test.pdf (205.4 KB)
13566698_Test.docx (64.5 KB)
13566698_Test.pdf (185.3 KB)

@Dhanashri0709

Can you please share which version of MS Word are you using? Can you please also attach the screenshots of formatting errors? This would help us in investigation process.