Contents are pushed down to next page in output PDF using .NET

Hi,

When converting a DOCX to PDF, I noticed the text gets pushed down to the next page, resulting in multiple layout issues.

Code:
var doc = new Document(@“.\test.docx”);
doc.LayoutOptions.TextShaperFactory = Aspose.Words.Shaping.HarfBuzz.HarfBuzzTextShaperFactory.Instance;
doc.Save(@“.\test.pdf”);

The paragraph at the end of page 2 was pushed down to page 3, therefore some textboxes position got affected. Also, it led to a textbox + image overlapping on page 5 and eventually, an extra page 6.

I’ve attached my test files and screenshots of the issues for your reference. It may be related to my previous posted issue Text is pushed down to page and truncated after DOCX to PDF conversion using .NET two weeks ago

test.zip (302.2 KB)
image.png (152.5 KB)
image.png (66.0 KB)

Could you please take a look into this as the PDF is unusable in this case.

UPDATE: the PDF used in my previous attachments were from an old Aspose version, I’ve re-uploaded with the new PDF created by Aspose 20.6.0. the issues in the description still stand

Thanks,

@ServerSide527

We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-20607 . You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-20607) have been fixed in this Aspose.Words for .NET 21.4 update and this Aspose.Words for Java 21.4 update.