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

Free Support Forum - aspose.com

Content are pushed up to previous page after DOCX to PDF using .NET


When converting a DOCX with some charts to PDF using Aspose.Words, I noticed contents supposed to be in the 2nd page was rendered to the first page.

var doc = new Document(@".\test.docx");
doc.LayoutOptions.TextShaperFactory = Aspose.Words.Shaping.HarfBuzz.HarfBuzzTextShaperFactory.Instance;

I’ve attached the sample test files and a screenshot for your reference. You can see that the content supposed to be in page 2 was rendered in page 1, also caused some overlapping at the footer.

Note that this is one of the cases I encountered, similar set up (table + section break + table) seemed to easily cause such problems. I was able to see a couple more such cases in my client’s report.

test.zip (194.4 KB)
image.png (163.4 KB)

Could you please help us take a look?



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

We apologize for your inconvenience.