We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Format issue in tables while converting PDF to Docx

I am trying to convert a pdf document tp docx, all the text are rendered correct. but i am getting alignment of tables wrong.

        string fileName = "Vaccine Data (2)";

        string destFileName = path + fileName+".pdf";

        DocSaveOptions saveOption = new DocSaveOptions();
        saveOption.Mode = DocSaveOptions.RecognitionMode.Flow;
        saveOption.Format = DocSaveOptions.DocFormat.DocX;
        saveOption.RecognizeBullets = true;

        Aspose.Pdf.Document pdfDocument = new Document(destFileName);
        pdfDocument.Save(Path.Combine(path, "pdfToWord", fileName+".docx"), saveOption);

the document I have used is : Vaccine Data (2).pdf (701.4 KB)


We have tested the scenario using the latest version of Aspose.PDF for .NET 21.11 and have not found the table formatting issue. Please use Aspose.PDF for .NET 21.11. We have attached the output DOCX with this post for your kind reference. 21.11.docx (661.6 KB)

I checked the document you shared, there is alignment issues in tables.
I will share with you the screenshot of table in original pdf file and also the same in output docx file.

Output from converted docx file wrongTable.PNG (16.1 KB)

originalTable.PNG (155.3 KB)

asposePDFVersion.PNG (5.1 KB)


Could you please share the MS Word version that you are using?

I am using the MS Word 2016 version.


We have logged this problem in our issue tracking system as PDFNET-51067. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.