Text is Shifted up to Previous Page | DOCX to PDF conversion using .NET

Hi,

When converting a DOCX to PDF, I noticed the text was moved to the previous page. This issue happened on many pages in the document.

Code:

var doc = new Document(@".\test.docx");
doc.LayoutOptions.TextShaperFactory = HarfBuzzTextShaperFactory.Instance;
doc.Save(@".\out.pdf");

I’ve attached my test files and some screenshots for your reference. The issue happens on page 3,4,5,6. Could you please help us take a look?

test.zip (319.6 KB)

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-21705. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi @tahir.manzoor

Our clients are keen to know why and when the issue would happen. Was it coming from any specific document settings and is there any workaround/configuration on the document or the code that can help to avoid the issue?

Thanks,

@ServerSide527

Your issue is related to footnotes and floating tables. The floating table height is not taken into account by Aspose.Words and this causes the issue. Unfortunately, there is no specific workaround available for this issue. We will inform you via this forum thread once there is an update available on it.

Hi @tahir.manzoor

We have another instance from another client that where text was moved to the previous page.

The code is the same as the initial comment and I’ve attached the new test resources here:

test.zip (181.9 KB)
image.png (14.9 KB)

Looks like this issue is affecting multiple clients, so it would be great if you could help us check.

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-22157. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi,

We have one more instance from a different client where text was moved to the previous page.

The code is the same as the initial comment and I’ve attached the new test resources here:

test.zip (1.0 MB)
image.jpg (194.3 KB)

Could you check if these are from the same/similar causes and take the new examples into account when making a fix?

Thanks,

@ServerSide527

We have logged this problem in our issue tracking system as WORDSNET-22694. 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-21705) have been fixed in this Aspose.Words for .NET 23.9 update also available on NuGet.

The issues you have found earlier (filed as WORDSNET-22157) have been fixed in this Aspose.Words for .NET 23.9 update also available on NuGet.