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

Free Support Forum - aspose.com

Convert PDF to DOCX using Aspose.PDF for .NET - too many mess code in the result

I use pdf.dll to save pdf as doc, but there are many mess code in the doc.
How to fix that?
thanks for your help.


Would you kindly share your sample PDF document with us along with the code snippet that you are trying at your side. We will test the scenario in our environment and address it accordingly.

    Dim Mypdf As Document = New Document("Test.pdf")
    Mypdf.Save("Test.docx", Aspose.Pdf.SaveFormat.DocX)

Test.pdf (1.2 MB)


We have tested the scenario in our environment using following code snippet and observed that content in the resultant DOCX file was not fine.

using (Document pdfFile = new Document(dataDir + "ducaisoft.pdf"))
 pdfFile.Save(dataDir + "ducaisoft.docx", new DocSaveOptions()
  Format = DocSaveOptions.DocFormat.DocX,
  Mode = DocSaveOptions.RecognitionMode.Flow,
  RecognizeBullets = true

Therefore, we have logged an issue as PDFNET-47865 in our issue tracking system. We will further look into details of it and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.