Word of 2 column payout docx to pdf problem column one content over lapping on column two

Docx file with 2 column page layout setting to PDF not working properly , 1st column some of contents are over lapping onto 2nd column. In word its looking properly.
Input & Output file enclosed here : Aspose word to pdf issue in two column.zip (1.8 MB)

Input & out Screen shot : Word_To_PDF_2_column_content_not_proper.png (100.2 KB)

Code :

public void convertDocxToPDF(File docxFile, File pdfFile)
{
    Document convDoc;
    try
    {
        convDoc = new Document(docxFile.getAbsolutePath());
        convDoc.getLayoutOptions().setTextShaperFactory(com.aspose.words.shaping.harfbuzz.HarfBuzzTextShaperFactory.getInstance());

        PdfSaveOptions opt = new PdfSaveOptions();
        opt.getDownsampleOptions().setDownsampleImages(false);
        opt.setUseAntiAliasing(true);
        opt.setImageCompression(PdfImageCompression.JPEG);
        convDoc.save(new FileOutputStream(pdfFile), opt);
    }
    catch (Exception e)
    {
        e.printStackTrace();
    }
}

Help us to resolved this issue

@nitinchopkar We were testing your code, but we are unable to replicate the issue. Please make sure that you are using the last version of the Aspose API, we tested your code using the 22.12 package version for Java and the 23.1 for .NET.
output.pdf (1005.8 KB)

We were using Aspose.word for java and version 22.11 ,
As per your previous post , I updated it to 22.12, but still facing same problem.
Input docx, Out PDF and Problem content screen short enclosed in zip format : Aspose word to pdf issue in two column.zip (1.7 MB)

Code :

public void convertDocxToPDF(File docxFile, File pdfFile)
{
    Document convDoc;
    try
    {
        convDoc = new Document(docxFile.getAbsolutePath());
        convDoc.getLayoutOptions().setTextShaperFactory(com.aspose.words.shaping.harfbuzz.HarfBuzzTextShaperFactory.getInstance());

        PdfSaveOptions opt = new PdfSaveOptions();
        opt.getDownsampleOptions().setDownsampleImages(false);
        opt.setUseAntiAliasing(true);
        opt.setImageCompression(PdfImageCompression.JPEG);
        convDoc.save(new FileOutputStream(pdfFile), opt);
    }
    catch (Exception e)
    {
        e.printStackTrace();
    }
}

guide us where we are wrong.

@nitinchopkar, we are running the same code that you posted and still are getting the 2 column text saved properly. Can you provide more details about the environment that you are using, also can you post how are you creating the docxFile and pdfFile instances?

we are converting HTML file to DOCX and same DOCX when we converting into PDF that time column 1 contents over lapping on column 2 instate of wrapping. As same column 2 some of contents are cutting look like flowing out off document.
You can compare docx question no. 1,4,9,10,11,12 with out put pdf question no. 1,4,9,10,11,12

Full Source Code java file(AsposeWordConverter.java), input html file & pom.xml file enclosed here in zip : Math-Test-1_solution.zip (2.2 MB)

Environment Details :

  1. Windows OS
  2. Development IDE : Spring tool suite 4
  3. JDK 8
  4. Spring boot frame work

You can find instances of docxFile and pdfFile from attachment in AsposeWordConverter.java

Let me know if you want any other information to occurred that issue

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): WORDSNET-24879

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.

any update on it.

@nitinchopkar We have completed the analysis of the issue. The issue occurs because incorrect table column widths stored in the document are not re-calculated by Aspose.Words. The problematic contents are in auto-fit tables with incorrect column widths stored in tblGrid element.
The issue has been postponed until the main WORDSNET-832 issue, related to table grid calculation algorithm, is resolved.

any update on it? we are waiting for solution.

@institutemagica Unfortunately, there are no news regarding the issue. It is still postponed until the main issue is resolved. We continuously work on improving our table layout algorithm to make it closer to MS Word as much as possible. Please accept our apologies for your inconvenience.

is that Table layout algorithm issue resolved at MS Word. If its resolved then we can check it with latest aspose.word.

Let us know about latest version and fixes.

@institutemagica Aspose.Words does not use MS Word, it has our own layout algorithm. We will keep you informed and let you know once the issue is resolved.