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

Free Support Forum - aspose.app

Aspose.PDF - PDF to DOCX conversion issues

When using the Aspose.PDF free converter at https://products.aspose.app/pdf/conversion our PDF converts to DOCX with a nearly identical layout. However, when we attempt to convert using C# on .NET Core in Debian Linux the conversion is missing some of the signature lines and one page is jumbled. Can you help me understand what may be different about the Aspose online conversion tool and our .NET installation to help us achieve similar results?

Original PDF document: original.pdf (278.7 KB)

DOCX received from Aspose online conversion (nearly identical): converted-aspose.app.docx (24.6 KB)

DOCX received from Aspose.PDF C# on .NET Core (broken content): converted-NET-core.docx (36.2 KB)

Our .csproj file looks like:

<Project Sdk="Microsoft.NET.Sdk">


    <PackageReference Include="Aspose.PDF" Version="21.7.0" />
    <PackageReference Include="Aspose.Words" Version="21.8.0" />
    <PackageReference Include="SkiaSharp" Version="2.80.3" />
    <PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.80.3" />
    <PackageReference Include="System.Collections" Version="4.3.0" />
    <PackageReference Include="System.Diagnostics.Debug" Version="4.3.0" />
    <PackageReference Include="System.IO.FileSystem.Primitives" Version="4.3.0" />
    <PackageReference Include="System.Runtime.Extensions" Version="4.3.0" />
    <PackageReference Include="System.Runtime.InteropServices" Version="4.3.0" />


We’ve tried using both versions of the code samples at https://docs.aspose.com/pdf/java/convert-pdf-to-docx/. Our latest C# implementation looks like:

public static void PDFToWord(string sourceUri, string destUri)
    if (File.Exists(@sourceUri))
        var pdfDoc = new Aspose.Pdf.Document(sourceUri);

        Aspose.Pdf.DocSaveOptions saveOptions = new Aspose.Pdf.DocSaveOptions();
        saveOptions.Format = Aspose.Pdf.DocSaveOptions.DocFormat.DocX;
        saveOptions.Mode = Aspose.Pdf.DocSaveOptions.RecognitionMode.Flow;
        saveOptions.RecognizeBullets = true;

        pdfDoc.Save(Path.GetFullPath(destUri), saveOptions);
        Console.Error.WriteLine("Unable to find file");
        Environment.ExitCode = 1;

This topic has been moved to the related forum: https://forum.aspose.com/t/aspose-pdf-pdf-to-docx-conversion-issues/233712